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,938
» Latest member: atylerfraces2254
» Forum threads: 38,722
» Forum posts: 175,511

Full Statistics

Online Users
There are currently 57 online users.
» 0 Member(s) | 54 Guest(s)
Bing, AOL, Google

Latest Threads
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 04:28 PM
» Replies: 11
» Views: 4,145
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 619
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
Sep-19-2025, 12:30 PM
» Replies: 1
» Views: 3,538
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 961
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,458
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,301
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 1,505
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,464
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,612
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 1,176

 
  access variables between classes
Posted by: Ahjeen - Jan-28-2018, 04:48 PM - Forum: GUI - Replies (4)

Hi I am new to python and have been trying to develop a tkinter application. My question is, how can you use a variable from a class method to another..... More

Print this item

  Help with Sorting
Posted by: rsherry8 - Jan-28-2018, 03:36 PM - Forum: General Coding Help - Replies (6)

I am trying to understand how to sort an array in Python 3.x using the bulit in sort function. So I wrote the following code. However, it did does not..... More

Print this item

  Trouble with a context manager class made with dunders
Posted by: Regulus - Jan-28-2018, 02:40 PM - Forum: General Coding Help - Replies (1)

I am running Python 3.6.3 in Spyder 3.2 and getting

Error:
TypeError: object() takes no parameters
at [python]with ManagedFile('hello.txt') as..... More

Print this item

  "100 prisoner problem" (attempts)
Posted by: boris602 - Jan-28-2018, 11:59 AM - Forum: General Coding Help - Replies (11)

Hello guys, i have found a code in the internet that i changed a bit. I tested it for a small group of prisoners , but the problem is, that my result ..... More

Print this item

  Unable to read csv file inside full code snippet, at the same time its working seprat
Posted by: sreeraj - Jan-28-2018, 09:54 AM - Forum: General Coding Help - Replies (2)

Here I used GetSatIDValue function for reading created csv file from getfilelist function. But its not happened as expected. At the same time this cod..... More

Print this item

  List problem "TypeError: must be str, not int"
Posted by: RedSkeleton007 - Jan-28-2018, 09:00 AM - Forum: General Coding Help - Replies (1)

I'm trying to print the elements of a list of strings to test Python's sorting methods, but it's complaining about data types:
[python]
#!/usr/bin/e..... More

Print this item

  Please help me condense this requests snippet, and answer a basic question
Posted by: league55 - Jan-28-2018, 08:43 AM - Forum: Web Scraping & Web Development - Replies (2)

I'm having a hard time deciphering the requests module documentation, so is there a way to do this in one statement:

[python]// assume I've importe..... More

Print this item

  Creating multiple lists from file without long for loop
Posted by: Curtnos - Jan-28-2018, 06:47 AM - Forum: General Coding Help - Replies (2)

I have space-separated data which I am trying to efficiently load into my program, however the only way that I know to split each row (which is in the..... More

Print this item

  Insert text in Ubuntu
Posted by: Vladimir - Jan-28-2018, 06:26 AM - Forum: General Coding Help - Replies (2)

Hello.
Is there a way to insert text in current cursor position in ubuntu? I tried xdotool, program and lib for python, but both of them works bad f..... More

Print this item

  negative to positive slices
Posted by: Skaperen - Jan-28-2018, 05:18 AM - Forum: General Coding Help - Replies (3)

i can sequence single character indexes like[output]>>> a='abcdefghijklmnopqrstuvwxyz'
>>> [a[x] for x in range(-6,6)]
['u', 'v', 'w', 'x', 'y', 'z'..... More

Print this item

  List Index out Of Range Error
Posted by: TFish - Jan-28-2018, 04:59 AM - Forum: General Coding Help - Replies (3)

[output]How Many People Are In Your Famly 2
How old... 5
[5]
What gender... Male
['Male']
How old... 10
[5, 10]
What gender... Female
['Male',..... More

Print this item

  command line calculator
Posted by: Zatoichi - Jan-28-2018, 04:38 AM - Forum: Homework - Replies (4)

[python]
import math
operation = (" ")
result = 0.0
number1 = 0.0
number2 = 0.0

def choice():
global operation, number1, number2
cho..... More

Print this item

  int vs long
Posted by: Skaperen - Jan-28-2018, 04:23 AM - Forum: General Coding Help - Replies (4)

in Python3 i'd like to determine if an int is large enough that its value would have to be long in Python2.

Print this item

  Adding a parameter/argument to a script
Posted by: jehoshua - Jan-28-2018, 03:07 AM - Forum: General Coding Help - Replies (11)

Have been running tests with small WAV files, and need to remove the hard code reference to a WAV file and add a parameter. Here is the code:

[pyth..... More

Print this item

  SyntaxError: EOL while scanning string literal on with open() statement
Posted by: Regulus - Jan-28-2018, 02:41 AM - Forum: General Coding Help - Replies (3)

Hi! I am getting this error message in Python 3.6.3, using Spyder 3.2 in Anaconda 5.0.1 on Windows 7.
^
SyntaxErro..... More

Print this item

  First program issues with format display
Posted by: Jrvelandia - Jan-28-2018, 02:07 AM - Forum: Homework - Replies (4)

Good evening,

I am very basic at programming in python and am seeking help in finishing my first program.
If possible help me with.
1.The welcome..... More

Print this item

  Timeit module
Posted by: Miraclefruit - Jan-28-2018, 02:00 AM - Forum: Data Science - Replies (9)

I'm trying to see the runtime of s.intersection(t) that takes two sets s and t and returns a new set with all the elements that occur in both s and t...... More

Print this item

  Count in Dictionaries
Posted by: Wolfpack2605 - Jan-28-2018, 01:15 AM - Forum: Homework - Replies (2)

This is the task that has to completed by using a dictionary of some sort.

You are curious about the most popular and least popular colours of cars..... More

Print this item

  Testing library
Posted by: egslava - Jan-28-2018, 01:04 AM - Forum: General Coding Help - Replies (2)

Hello!
1. What is a test framework that you use?
2. I want a framework with
a) Continuous running. Like I just run:

Quote:$ tests run
..... More

Print this item

  Dictionary Methods
Posted by: Wolfpack2605 - Jan-28-2018, 12:17 AM - Forum: General Coding Help - Replies (2)

Hi,

I just wanted to know if there is a way to count the individual keys in a dictionary and print the amount of times they appear.

Print this item

  PyPi report (Nosy package)
Posted by: egslava - Jan-28-2018, 12:14 AM - Forum: News and Discussions - Replies (3)

Hello!
I'm sorry, I didn't know where to report, so I have found this forum.

Here, in the description of N[url=https://python-forum.io/thread-7859.html]..... More

Print this item

  Simple Code - Strange Results?
Posted by: emerger - Jan-27-2018, 11:30 PM - Forum: General Coding Help - Replies (5)

Here's a simple code I ran for practice as part of my class. Below are the results. Can anyone tell me why the increment when to the ?trillionth+? d..... More

Print this item

  PM space usage doesn't change when PMs deleted
Posted by: league55 - Jan-27-2018, 11:14 PM - Forum: Board - Replies (4)

My PM space usage was 46%, so I deleted a bunch of PMs I don't need to keep. Which means all of them. The PM space usage still showed as 46%.

I log..... More

Print this item

  Running telnet loop freezes GUI
Posted by: reedhallen - Jan-27-2018, 10:09 PM - Forum: GUI - Replies (1)

Hello there.

I am brand new to python and this is my first project.

Essentially I the script will allow a user to select a file from their compu..... More

Print this item

  Why so complicated?
Posted by: vulpesVelox - Jan-27-2018, 10:06 PM - Forum: Web Scraping & Web Development - Replies (18)

I'm running python on no less than three different platforms. This is obviously my own fault, but I'm a bit puzzled all the same.

One system is run..... More

Print this item

  What's a good practice project for learning BeautifulSoup4, which has a real use case
Posted by: league55 - Jan-27-2018, 08:32 PM - Forum: Web Scraping & Web Development - Replies (2)

I want to get good at using BS4 in my scripts and want to do it by working on scripts that have some kind of real use. And I want to start simple.

Print this item

  installing OpenPyXl
Posted by: kwfreverie - Jan-27-2018, 07:41 PM - Forum: General Coding Help - Replies (11)

Hi I've been trying to install and use OpenPyxl http://openpyxl.readthedocs.io/en/stable/inde[url=https://python-forum.io/thread-7853.html]..... More

Print this item

  sending data to second python script
Posted by: Cyberfly - Jan-27-2018, 06:45 PM - Forum: General Coding Help - Replies (1)

Hi everyone,

I am trying to learn a bit of python and picked up a little project to give the coding a purpose. I am trying to make a temperature st..... More

Print this item

  random permutation
Posted by: boris602 - Jan-27-2018, 06:32 PM - Forum: Homework - Replies (2)

Hi guys,for a homework about the "100 prisoner problem" i need some command that gives me a random permutation that i can find in "p".[python]p=Permut..... More

Print this item

  Extracting information from bills
Posted by: alias5000 - Jan-27-2018, 05:48 PM - Forum: Data Science - Replies (3)

Hi everyone,
I am hoping to write some code that can extract certain information from utility bills. I am hoping that the result will be simple, reli..... More

Print this item

  beginner level Python:- output XLS spreadsheet instead of using tabulate
Posted by: haziebaby - Jan-27-2018, 04:50 PM - Forum: Data Science - Replies (7)

I have a python script that uses the 'print tabulate' to output the data in CLI.
I would like an easy way output to XLS workbook using 'xlwt' instead..... More

Print this item

  Simple Question for Most - Help Explain Please
Posted by: emerger - Jan-27-2018, 03:50 PM - Forum: Homework - Replies (8)

Hello. I am taking a basic class and running their code. (This is my first time posting on this forum). My question is: Why do I need to use the fir..... More

Print this item

  Problem on installing PySide2 on Mac
Posted by: cpuin - Jan-27-2018, 03:09 PM - Forum: GUI - Replies (5)

Hi,
Does somebody know a way to install PySide2 on Mac?
I tried using pip3 and brew, but noone support it.
Is there some compuled way (without anac..... More

Print this item

  Commercial GUI application
Posted by: cpuin - Jan-27-2018, 02:31 PM - Forum: GUI - Replies (1)

Hi,

My favorite language is Python.I’m wandering wether there are successful developers who sell their GUI programs written in Python?I’m not talki..... More

Print this item

  First Gui attempt and file not working like it is supposed to.
Posted by: Tuck12173 - Jan-27-2018, 02:23 PM - Forum: GUI - Replies (2)

Hi,

I am sure this is something super easy and I am just a newb, but this is my first GUI and I can't even get the logo to appear. Here is my code..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  403 Error Yesterday, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  Scraping a page with log ... 09-19, 12:30 iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  Another app idea - intera... 09-16, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... 09-15, 15:28 Bona2000 Bona2000 General Codin...
Most views
  The best Prog... 576424
  Tutorial Requ... 498240
  Web Scraping ... 440335
  Newbie with P... 384212
  New Users Int... 367252
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+ 12089
buran 8175
snippsat 7368
deanhystad 6891
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
atylerfraces2254 Yesterday
AdrianCocian Yesterday
humanoidAI Yesterday
Baran12332 09-19
Hershien 09-19

User Panel Messages

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