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 91 online users.
» 0 Member(s) | 88 Guest(s)
Bing, Google, DuckDuckGo

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: 314
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

 
  Choose an element from multidimensional array
Posted by: quest_ - Nov-24-2020, 11:22 PM - Forum: General Coding Help - Replies (2)

Hello,
I want to choose a random element from multidimensional array. I have this code but I have "list indices must be integers or slices not tuple" ..... More

Print this item

  Why is 0.1 * 0.2 arithmetically incorrect?
Posted by: Pedroski55 - Nov-24-2020, 11:18 PM - Forum: General Coding Help - Replies (2)

On the face of it, this seems an easy sum to do:

>>> 0.2 * 0.1
0.020000000000000004

Python is not good at arithmetic?

Print this item

  Formatting lists
Posted by: rturus - Nov-24-2020, 10:57 PM - Forum: General Coding Help - Replies (5)

How can i format lists in columns so that gap between them are even any they are nicely in line?

Thanks.

Print this item

  reading json file
Posted by: DrBrownStats - Nov-24-2020, 10:45 PM - Forum: General Coding Help - Replies (1)

I'm new to python so I need a bit of direction. I've got some python code given to me to run against some quite complicated json files. I followed dir..... More

Print this item

  Calculator with logging library
Posted by: Inkanus - Nov-24-2020, 10:42 PM - Forum: General Coding Help - Replies (3)

I wrote a calculator but it doesn't count Smile I have to use the logging library but i don't know how. Previously, everything worked without thi..... More

Print this item

  Is there anyway to make this work?
Posted by: dre - Nov-24-2020, 09:26 PM - Forum: General Coding Help - Replies (3)

Got a question for you. Is it possible to run a line of code, which will have the same outcome, if the host has disabled/modified it?

So here's whe..... More

Print this item

  Stuck on Python Lab, Thank you for your help
Posted by: charliedale55 - Nov-24-2020, 09:06 PM - Forum: Homework - Replies (2)

Hi there,
I am new to Python and currently doing a Open University introductory course. I am currently at the end of Module 2 and have this lab task..... More

Print this item

  Code optimization
Posted by: Vidar567 - Nov-24-2020, 09:03 PM - Forum: General Coding Help - Replies (2)

Hello guys,
Have you got any sugesstions how to optimize my code?
I would like to use maybe other solution to compile faster.
Thank you for any sug..... More

Print this item

  None in the list error
Posted by: Vidar567 - Nov-24-2020, 08:27 PM - Forum: General Coding Help - Replies (2)

My excersise is to output list without occurring in the list.

I made it, but there is another condition which I do not really understand and it giv..... More

Print this item

  Simple Palindrome
Posted by: Inkanus - Nov-24-2020, 08:26 PM - Forum: General Coding Help - Replies (4)

Hi. I have simple program which checks if a string is a palindrome
[python]
def is_palindrome(i):
if len(i) <= 1:
return True
else:..... More

Print this item

  Problem updating value in MySQL database
Posted by: dangermaus33 - Nov-24-2020, 08:15 PM - Forum: General Coding Help - Replies (1)

I made a simple app to read the product names and prices from a small database. You can change the prices and then commit them back to database. It ru..... More

Print this item

Sad Thanks in advance for your help
Posted by: sabe - Nov-24-2020, 07:28 PM - Forum: Homework - Replies (1)

[python]kilometres = int(input("Enter value in kilometres: "))
conv_fac = 0.6214
miles = kilometres * conv_fac
print('%0.2f kilometers is equal to ..... More

Print this item

  Update: Managed cloud hosting provider BFCM offer 2020
Posted by: johncamp - Nov-24-2020, 06:22 PM - Forum: Bar - No Replies

Hi All,

Its a opportunity for web developers and online business owner to get exclusive discount from top cloud provider.

This BLACK FRIDAY, Clo..... More

Print this item

  “NameError” “is not defined” script that I know works on other computers
Posted by: iamwithstupid - Nov-24-2020, 04:23 PM - Forum: General Coding Help - No Replies

This question isn't that much about coding since the scripts seem to work on Win10. I only have troubles trying to run them on my mac. Some background..... More

Print this item

  Getting the hourly average of a time series dataset
Posted by: Raskou07 - Nov-24-2020, 03:31 PM - Forum: General Coding Help - Replies (10)

Hello guys, I have a large dataframe of 10000 rows and 2 columns .The first column is the dates(years,months,days,hours,minutes) as index. My dates co..... More

Print this item

  module not found, is ok?
Posted by: 3Pinter - Nov-24-2020, 02:47 PM - Forum: General Coding Help - Replies (3)

I created a own __init__.py which call in a script.
Works just fine.

However, I renamed a module (all to lowercase), so a script obviously doesn't..... More

Print this item

  Unfamiliar error
Posted by: ErnestTBass - Nov-24-2020, 02:34 PM - Forum: General Coding Help - Replies (1)

I get the following warning when I try to run a

conda env create -f environment.yml
[error]
Warning: you have pip-installed dep..... More

Print this item

  splitting a csv file to create another csv
Posted by: pisike - Nov-24-2020, 02:14 PM - Forum: General Coding Help - Replies (4)

0


I have a csv file that as data as below in two columns

"ou=People, o=ic.com,o=xerox",{}

"uid=test.test30,ou=People,o=ic.com,o=xerox","{'claimnum..... More

Print this item

  Error on nested loop : Invalid syntax
Posted by: dvazquezgu - Nov-24-2020, 02:06 PM - Forum: General Coding Help - Replies (3)

I have three dictionaries with coordinates looking like this:

First one one_crime_cord Containing a unique crime
[python](34.0141, -118.2978..... More

Print this item

  Creating csv file from another file
Posted by: pisike - Nov-24-2020, 02:02 PM - Forum: General Coding Help - No Replies

I have a file that is exported from an upstream system and data is not the same in each row.

But the main attributes in the file are below. Not a..... More

Print this item

  Output with none, print(x) in function
Posted by: Vidar567 - Nov-24-2020, 01:51 PM - Forum: General Coding Help - Replies (3)

Do you have any suggestions how to change this None in an output value?

I have read that it is because of print(x), but... if I delete or change pr..... More

Print this item

  web developer need for building a coupon sharing site or application
Posted by: kyleroof - Nov-24-2020, 01:01 PM - Forum: General Coding Help - No Replies

We are a team of 5 individuals who work on different small ventures/products. Now we have gotten an idea of starting/building a coupon listing/sharing..... More

Print this item

  queued music wont play, how to do this?
Posted by: glennford49 - Nov-24-2020, 12:54 PM - Forum: General Coding Help - No Replies

queued music wont play next, any idea on this?

[python]
import pygame
import time
pygame.mixer.init()
pygame.mixer.music.load('goodbye.ogg'..... More

Print this item

  Need feedback on my approach for python dashboard for Asana
Posted by: pashtett - Nov-24-2020, 11:51 AM - Forum: General Coding Help - No Replies

I'd like to build my own simple dashboard for Asana project tracker. I imagine it having just simple charts, but I want it to be publicly available. I..... More

Print this item

  working with pyttsx3
Posted by: gr3yali3n - Nov-24-2020, 09:40 AM - Forum: General Coding Help - No Replies

i have been messing around with text the speech module pyttsx3, I have two computers that I am working with, one is a mac and the other is a linux the..... More

Print this item

  Need urgent help
Posted by: OneTwo - Nov-24-2020, 07:24 AM - Forum: General Coding Help - Replies (9)

Hi,
How to take a word and put the letters into separate indexes of an array instead of putting the letters into 1 index?
Thanks

Print this item

  Python Machine Learning: For Data Extraction
Posted by: JaneTan - Nov-24-2020, 06:45 AM - Forum: Data Science - No Replies

Hi

I have many pdf files. Each file has many tables, and I want Python to be able to find the correct (eg Revenue) table and extract the correct da..... More

Print this item

  is there a single function to confine a number between two others?
Posted by: Skaperen - Nov-24-2020, 06:06 AM - Forum: General Coding Help - Replies (7)

is there a single function to confine a number between two others? i know i can do it with min() and max(), but that actually looks ugly. this shoul..... More

Print this item

  Help with my code! Pls and thank you its due soon
Posted by: shirleylam852 - Nov-24-2020, 04:33 AM - Forum: Homework - Replies (2)

My professor gave us a all-tweets.zip with 12 files but I couldn't import or open it correctly. It says 'not found' so I opened it individually but my..... More

Print this item

  why the position of the object is different?
Posted by: syafiq14 - Nov-24-2020, 01:51 AM - Forum: Game Development - Replies (1)

I tried changing the object's position with the center of get_rect () and I got a different result without using center and using center

My game sc..... More

Print this item

  Please help me. about self.expect()
Posted by: leeyoung - Nov-23-2020, 10:25 PM - Forum: General Coding Help - No Replies

this 2 line code
====
self.expect('Hit any key to stop autoboot:', timeout=timeout)
self.send("\n")

===================================..... More

Print this item

  Perfect numbers
Posted by: Vidar567 - Nov-23-2020, 09:50 PM - Forum: General Coding Help - Replies (2)

Gentlemans, do you have any suggestions why this code doesn't output proper values?

When I write end = 100 it outputs:
[6, 24, 28]

24 is not a ..... More

Print this item

Heart Urgent homework help needed
Posted by: Medou - Nov-23-2020, 09:46 PM - Forum: Homework - Replies (4)

Dear Python lovers,

I am in urgent need of some assistance. I am stuck with a seemingly simple task, just can't wrap my head around the slicing par..... More

Print this item

  tkinter designer
Posted by: horrorfodrasz - Nov-23-2020, 09:01 PM - Forum: Code sharing - Replies (3)

I made a simple Python Tkinter designer tool.
It is written in Python and you will get pure Python tkinter code. It uses tkinter Grid geometry manag..... More

Print this item

  Animating 2D object movement with matplotlib
Posted by: esamalihalil1993 - Nov-23-2020, 05:22 PM - Forum: Homework - No Replies

Hello there. I'm a super-fresh computer science student and I have been given the following task: I need to create an animation using matplotlib in py..... 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 ... 442042
  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