Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,957
» Latest member: GnomeSweetGnome
» Forum threads: 38,728
» Forum posts: 175,528

Full Statistics

Online Users
There are currently 53 online users.
» 0 Member(s) | 42 Guest(s)
Bing, Google, AOL, AOL, Applebot, Mojeek, Facebook

Latest Threads
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
1 hour ago
» Replies: 0
» Views: 55
extracting data from a us...
Forum: General Coding Help
Last Post: DeaD_EyE
Yesterday, 01:49 PM
» Replies: 2
» Views: 216
how to export a dictionar...
Forum: GUI
Last Post: Pedroski55
Yesterday, 03:45 AM
» Replies: 3
» Views: 271
Is the interpreter that c...
Forum: General Coding Help
Last Post: helendamdam
Yesterday, 01:04 AM
» Replies: 0
» Views: 425
pip install requests does...
Forum: General Coding Help
Last Post: DeaD_EyE
Sep-24-2025, 02:48 PM
» Replies: 10
» Views: 29,532
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: Pedroski55
Sep-23-2025, 12:00 PM
» Replies: 4
» Views: 9,487
IBKR Purchasing code issu...
Forum: General Coding Help
Last Post: compuman145
Sep-23-2025, 09:08 AM
» Replies: 0
» Views: 359
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
Sep-23-2025, 03:29 AM
» Replies: 2
» Views: 826
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
Sep-22-2025, 08:56 PM
» Replies: 9
» Views: 1,046
403 error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 5,324

 
  Use defs instead of classes
Posted by: sylas - Aug-27-2018, 07:15 AM - Forum: General Coding Help - Replies (1)

Hi all ! Since it is easier to use defs instead of classes, is it not reasonable to use classes only in case there are more than 1 classes ??

Print this item

  Get last tuple from two-dimensional array?
Posted by: Winfried - Aug-27-2018, 06:09 AM - Forum: General Coding Help - Replies (6)

Hello,

Searching the archives with "two dimensional array last" returned no hits.

I need to find the last tuple from this kind of output:
[code..... More

Print this item

  Skaperen blames Ubuntu
Posted by: Skaperen - Aug-27-2018, 05:48 AM - Forum: Bar - Replies (12)

i did a fresh install of Ubuntu 16.04 in a cloud instance and found it had 21 PyPi packages installed. but pip was not one of them. and the data tha..... More

Print this item

  [SOLVED] [Nominatim] How to get "town" from reply?
Posted by: Winfried - Aug-27-2018, 05:36 AM - Forum: General Coding Help - No Replies

Hello,

I use Nominatim to reverse geolocate by providing lat+lon and getting the full adress back.

Before I resort to regex for parsing, is there a ..... More

Print this item

  How to sum up the elements of an integer using python split/join?
Posted by: mohanraj1986 - Aug-27-2018, 05:18 AM - Forum: General Coding Help - Replies (5)

I am trying to sum up the elements of an integer using python split join
Here is my code,
-----------------------
a='1234'
b=list(a)
c='+'.join..... More

Print this item

  parse tree to json dictionary in python
Posted by: maryum - Aug-27-2018, 04:59 AM - Forum: General Coding Help - No Replies

(S
(NP
(NP (NNP Takahama) (POS 's))
(JJ problematic))
(VP (VBP restart)
(NP
(NP (NN https://t.co/3hx12xWrnf) (NN #G7..... More

Print this item

  Problem in installation and difficulty to use Python 3.5 on
Posted by: gowther - Aug-27-2018, 02:16 AM - Forum: GUI - Replies (1)

Hello, I'm studying the Python language, and I needed to update the version I was using 3.4 to 3.6 or higher, but I noticed a constant error when I in..... More

Print this item

  py.exe: printing ascii number 7
Posted by: qrani - Aug-27-2018, 01:12 AM - Forum: News and Discussions - Replies (3)

I was messing around in python with ascii,
And I found something I think is interesting.
This:
[python]quitfunc = 'r'
while(quitfunc == 'r'):
..... More

Print this item

  i need a way ...
Posted by: Skaperen - Aug-26-2018, 11:56 PM - Forum: Bar - No Replies

i need a way, given a file path, a way to determine whether apt-get or pip installed it (and not if they think they did). in an old backup i am able ..... More

Print this item

  how to get pip to uninstall packages
Posted by: Skaperen - Aug-26-2018, 10:47 PM - Forum: Bar - Replies (7)

i am getting errors like these:[output]Cannot uninstall 'apturl'. It is a distutils installed project and thus we cannot accurately determine which fi..... More

Print this item

  I want to add B1 + A2 = B2
Posted by: kasicrypto - Aug-26-2018, 10:43 PM - Forum: General Coding Help - Replies (1)

I have a file with 1mil records and am trying to add the number in cell B1 to the number immediately below it in cell A2 and show the results in B2 an..... More

Print this item

  write split words of sentence to file
Posted by: bluefrog - Aug-26-2018, 08:51 PM - Forum: Homework - Replies (1)

When I test the split on Python's IDLE, I get a list of words, for example:
[python]Python 3.6.5 (default, Apr 1 2018, 05:46:30)
[GCC 7.3.0] on li..... More

Print this item

  run code while playing video
Posted by: almulder - Aug-26-2018, 07:19 PM - Forum: General Coding Help - No Replies

I am new to python, and been reading and i think i am in the right direction, just not sure.

I am trying to start executing code and without waitin..... More

Print this item

  Change values in string multiline
Posted by: DavidFernandez - Aug-26-2018, 07:12 PM - Forum: General Coding Help - Replies (4)

Hi,
my question is the following.

can we change the value of some information in a multiline string?

I tested the format but it does not work...... More

Print this item

  Simple Byte Question
Posted by: malonn - Aug-26-2018, 06:35 PM - Forum: General Coding Help - Replies (3)

Isn't b'\xec' the same as 0xEC?

I have bytes like 0xEC as keys for a dict, but I keep getting a key er..... More

Print this item

  Alien game code from book
Posted by: TheMusicMan - Aug-26-2018, 04:06 PM - Forum: General Coding Help - Replies (4)

Im still on my book and got stuck at this code.


[python]alien_0 = {'x_position': 0, 'y_poaition': 25, 'speed': 'medium'}
print('original x-position:..... More

Print this item

  need help decrypting a gif file
Posted by: SoulsKeeper - Aug-26-2018, 03:28 PM - Forum: Homework - Replies (1)

hello, i got a job offer which will send me to a fully paid studying program which i will be able to work at the end of, if only i will be able to sol..... More

Print this item

  code copy from pep-3134
Posted by: bluefrog - Aug-26-2018, 02:59 PM - Forum: General Coding Help - Replies (1)

I'm attempting to run the snippet of code in PEP-3134, but I'm not getting the errors stated.
The ..... More

Print this item

  Not receiving serial data from arduino
Posted by: dinoel_cool - Aug-26-2018, 02:42 PM - Forum: General Coding Help - Replies (4)

Hi guys. So, I am trying to receive serial data from my Arduino Uno.
The Arduino sends the heading from a magnetometer over serial, but the Python co..... More

Print this item

  Generate PDF reports
Posted by: giu88 - Aug-26-2018, 11:20 AM - Forum: General Coding Help - Replies (7)

Hello,

I need to generate nice-looking pdf reports with charts and tables.
Right now i am looking at three different solutions, but can't figur..... More

Print this item

  iterate over class properties?
Posted by: NobahdiAtoll - Aug-26-2018, 10:44 AM - Forum: General Coding Help - Replies (10)

is there a way to iterate over python property descriptors rather than __dict__ attributes?

[python]import datetime
from datetime i..... More

Print this item

  Display image from URL
Posted by: mr_byte31 - Aug-25-2018, 09:13 PM - Forum: General Coding Help - Replies (1)

Hi All,

I try to display an image from a URL but that doesn't seem to work.
do I have to download it first before I display ?


[python]from t..... More

Print this item

  Text to column pandas
Posted by: ms5573 - Aug-25-2018, 08:18 PM - Forum: Data Science - No Replies

Hi - I have a cvs file that has the below format. How do I apply text to column to the second column so that the data is broken out in separate column..... More

Print this item

  IDE and new Students
Posted by: JRValdez - Aug-25-2018, 06:09 PM - Forum: Bar - Replies (6)

Hello,

I am brand new to Python and though I learned some basic in elementary school and a little C++ in college I am for all intents and purposes ..... More

Print this item

  Problem with Lists in Python
Posted by: DEAD_BOT - Aug-25-2018, 06:06 PM - Forum: General Coding Help - Replies (2)

Thanks for answering my question in advanced... Sorry If I sound Stupid. Wink

I popped an element from the middle of a list in python how do ..... More

Print this item

  a class that gets available, running, and stopped services (Ubuntu/Debian)
Posted by: rootVIII - Aug-25-2018, 05:35 PM - Forum: Code sharing - Replies (5)

[python]
#! /usr/bin/python3
import os


class ServiceReport:
def __init__(self):
self.services = []
self.all_services = [..... More

Print this item

  SUDS - Time Out
Posted by: Dzony - Aug-25-2018, 05:31 PM - Forum: Networking - Replies (1)

Hello,
I am using SUDS for calling webservice method. Everything works under Windows but when I run it on Suse Linux I get this kind of error:

[e..... More

Print this item

  Quick question
Posted by: HespelerDad - Aug-25-2018, 04:08 PM - Forum: Web Scraping & Web Development - Replies (3)

Hey there. Can I ask what this website is coded with? https://mapleleafsaggr.com/ Is it Python?

Cheers, Rick

Print this item

  makingVariable declaration mandatory
Posted by: rohitnirantar - Aug-25-2018, 03:55 PM - Forum: General Coding Help - Replies (5)

Hi All,

How can i make variable declaration mandatory before i can use it in python?

I don't want my spelling mistakes to introduce any defects ..... More

Print this item

  So I was learning python
Posted by: Sanlus - Aug-25-2018, 03:28 PM - Forum: General Coding Help - Replies (8)

Used video from automate the boring stuff with python course, and copied the course program onto my own computer and try to ran it. Didn't work as the..... More

Print this item

  Problem with variable
Posted by: O_Pas_Sage - Aug-25-2018, 02:33 PM - Forum: General Coding Help - Replies (7)

Hello,
My program :

variable = chocolate
number = 'variable'

print(number... ?)
And I want the answer of the program to..... More

Print this item

  Converting String into Nested List
Posted by: Nirmal - Aug-25-2018, 01:19 PM - Forum: General Coding Help - Replies (1)

I have a nested list . i Need to reorganize it.

Expected Output :

[python][['Eth1/1,1,eth,f-path,down,Channel,admin down,10G(D),1'],['Eth102/1/1..... More

Print this item

  I wan't to Download all .zip Files From A Website (Project AI)
Posted by: eddywinch82 - Aug-25-2018, 12:12 PM - Forum: Web Scraping & Web Development - Replies (68)

Hi there,

I downloaded .zip Files, a while back, using a Python Code,which I was very kindly helped with by snippsat, and others on here. I would n..... More

Print this item

  Having issues getting a loop to work PLESSE HELP ASAP
Posted by: manthus007 - Aug-25-2018, 10:12 AM - Forum: General Coding Help - Replies (1)

hi people,

I'm trying to get a loop going for a project and just can't seem to get it work work. the program works before I put the 'while' stateme..... More

Print this item

  Can I use a sublist as an argument in python?
Posted by: MartinBerlin - Aug-25-2018, 10:06 AM - Forum: General Coding Help - Replies (3)

I have a nested list:

city = [['house', 'street', 'park'], ['car', 'bike', 'train']]
Now I want to define a function what takes..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  My goal to be hired worki... 1 hour ago GnomeSweetGnome GnomeSweetGnome News and Disc...
  extracting data from a us... Yesterday, 13:49 Perry DeaD_EyE General Codin...
  [Tkinter] how to export a... Yesterday, 03:45 RonR Pedroski55 GUI
  Is the interpreter that c... Yesterday, 01:04 helendamdam helendamdam General Codin...
  pip install requests does... 09-24, 14:48 misodca DeaD_EyE General Codin...
  Creating a Mindmap progra... 09-23, 12:00 J_Miller Pedroski55 General Codin...
  IBKR Purchasing code issu... 09-23, 09:08 compuman145 compuman145 General Codin...
  A coding beginner needs h... 09-23, 03:29 Littlefish Littlefish General Codin...
  Using a For Loop to subtr... 09-22, 20:56 Anunderling deanhystad General Codin...
  403 error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
Most views
  The best Prog... 576900
  Tutorial Requ... 499508
  Web Scraping ... 440678
  Newbie with P... 384650
  New Users Int... 368640
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12088
buran 8176
snippsat 7367
deanhystad 6895
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
GnomeSweetGnome Yesterday
alxpetrovo2272 Yesterday
Jamirul Yesterday
Perry Yesterday
bianchiluca116 09-24

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020