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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,266
» Latest member: tlandr02
» Forum threads: 38,788
» Forum posts: 175,853

Full Statistics

Online Users
There are currently 259 online users.
» 0 Member(s) | 256 Guest(s)
Bing, Google, Mojeek

Latest Threads
Access keys and values fr...
Forum: General Coding Help
Last Post: buran
8 hours ago
» Replies: 3
» Views: 73
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Nov-15-2025, 04:07 PM
» Replies: 2
» Views: 128
PermissionError: [Errno 1...
Forum: GUI
Last Post: deanhystad
Nov-15-2025, 02:42 PM
» Replies: 1
» Views: 80
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Nov-15-2025, 01:54 PM
» Replies: 1
» Views: 79
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Nov-15-2025, 01:00 PM
» Replies: 5
» Views: 332
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 55
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Nov-14-2025, 06:38 PM
» Replies: 0
» Views: 87
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 313
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 174
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 273

 
  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

  Python capitalize() method problem
Posted by: Skipper - Jan-27-2018, 02:16 PM - Forum: General Coding Help - Replies (9)

[size=small]Hi Guys,

I am new to Python and programming and just started a Python tutorial - currently about string methods.
The drill is the foll..... More

Print this item

  ValueError: not enough values to unpack (expected 2, got 1)
Posted by: Wolfpack2605 - Jan-27-2018, 11:04 AM - Forum: General Coding Help - Replies (1)

[python]types={}

c=input("Car: ")
while c != '':
car, colour = c.split()
types[car] = colour
colour=input("Car: ")

print(types)[/pyt..... More

Print this item

  Unable to connect oracle database using python code
Posted by: mayuresh - Jan-27-2018, 10:25 AM - Forum: General Coding Help - Replies (2)

I'm getting below error while trying to connect oracle database in python code. could someone help:

>>> import cx_Oracle
>>> connection = cx_Oracl..... More

Print this item

  list vs variables
Posted by: mcmxl22 - Jan-27-2018, 08:54 AM - Forum: General Coding Help - Replies (2)

I need name to print out the assigned variables.
[python]
a = j = s = '1'
b = k = t = '2'
c = l = u = '3'
d = m = v = '4'
e = n..... More

Print this item

  Help with test exercise
Posted by: lm777 - Jan-27-2018, 08:17 AM - Forum: Homework - Replies (3)

Hey Im having a test and I cant get over one exercise.

Python - Write a program that shows words that contains "-" symbol in a text written by user..... More

Print this item

  Windows Context Menu Depth
Posted by: GWild - Jan-27-2018, 07:18 AM - Forum: News and Discussions - No Replies

When selecting a file in the Windows Shell Context, {rt click}Edit with IDLE>Edit with IDLE 3.6.4 ...

It's pretty annoying to have two level of edi..... More

Print this item

  goto problem
Posted by: Skaperen - Jan-27-2018, 04:00 AM - Forum: General Coding Help - Replies (1)

i have a function that has several places where it needs to finish up and return. the finish up and return code is identical in all cases. in C i di..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Access keys and values fr... 8 hours ago Winfried buran General Codin...
  How to make ball stay wit... 11-15, 16:07 nathanael deanhystad General Codin...
  PermissionError: [Errno 1... 11-15, 14:42 Tuurbo46 deanhystad GUI
  Graph Interpolate Difficu... 11-15, 13:54 Tuurbo46 deanhystad General Codin...
  sorting a lisr of file pa... 11-15, 13:00 Skaperen DeaD_EyE News and Disc...
  conditional nested loops 11-14, 23:31 Skaperen Skaperen News and Disc...
  PyQt6 QWidgets and system... 11-14, 18:38 stevecoh1 stevecoh1 GUI
  [solved] re.split issue 11-14, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... 11-14, 15:33 pbkurd Larz60+ General Codin...
  New to python and coding 11-13, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... 11-13, 11:52 yutaozhou noisefloor News and Disc...
Most views
  The best Prog... 579038
  Tutorial Requ... 511001
  Web Scraping ... 442041
  Newbie with P... 386085
  New Users Int... 377564
Most reputation
buran 581
snippsat 511
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12108
buran 8196
snippsat 7389
deanhystad 6913
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
tlandr02 Yesterday
Rerus3700 Yesterday
pas88 Yesterday
aanthonymaaleyo3938 Yesterday
chuhlowe 11-15

User Panel Messages

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