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,275
» Latest member: cruisesfares
» Forum threads: 38,788
» Forum posts: 175,861

Full Statistics

Online Users
There are currently 51 online users.
» 1 Member(s) | 42 Guest(s)
Bing, Google, Facebook, AOL, Mojeek, deanhystad

Latest Threads
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Less than 1 minute ago
» Replies: 3
» Views: 216
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
11 hours ago
» Replies: 1
» Views: 96
PyQt6 QWidgets and system...
Forum: GUI
Last Post: Axel_Erfurt
Yesterday, 06:47 PM
» Replies: 2
» Views: 178
best way to learn python
Forum: News and Discussions
Last Post: mamta25
Yesterday, 04:13 PM
» Replies: 5
» Views: 3,097
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
Nov-17-2025, 11:47 AM
» Replies: 4
» Views: 202
PermissionError: [Errno 1...
Forum: GUI
Last Post: Tuurbo46
Nov-17-2025, 08:44 AM
» Replies: 2
» Views: 153
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Nov-15-2025, 04:07 PM
» Replies: 2
» Views: 204
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Nov-15-2025, 01:00 PM
» Replies: 5
» Views: 375
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 89
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 399

 
  A big for in for Loop!
Posted by: faryad13 - Sep-03-2020, 05:58 AM - Forum: General Coding Help - Replies (5)

Hello guys
good day
I have a list of near 10000 points with x,y,z coordinates and a fourth property which is 1 or 2 or 3 (let call it p).
The point..... More

Print this item

  Array
Posted by: Aussie - Sep-03-2020, 04:06 AM - Forum: General Coding Help - Replies (2)

Hi, I want to print the sample values to a csv file.
The code below does create a file and prints to it.

Though I want the "value" part of the wri..... More

Print this item

  head()
Posted by: d8a988 - Sep-02-2020, 09:32 PM - Forum: Data Science - Replies (4)

the command 'head()' only partially displays the excel file I am dealing with.
How do I display the whole file?

these lines
[python]
data=pd.re..... More

Print this item

  'python setup.py bdist' gets error on 'compiler_flags'
Posted by: 1780yz - Sep-02-2020, 09:17 PM - Forum: General Coding Help - No Replies

On Windows, I've successfully compiled source code of Python-3.6.12. When trying to build distribution, I got the following error complaining about co..... More

Print this item

  tic-tac-toe with a computer player
Posted by: Clunk_Head - Sep-02-2020, 08:30 PM - Forum: Code sharing - Replies (1)

Seeing the recent tic-tac-toe thread in general programming made me curious about writing tic-tac-toe with a computer player. Here is the result:
[py..... More

Print this item

  dice roller with tkinter
Posted by: g0g0g1g - Sep-02-2020, 08:07 PM - Forum: Homework - Replies (5)

i am using tkinter to make my dice roller code look more appealing. i have gotten tkinter to display a roll button that works on the shell but in the ..... More

Print this item

  How to add date and years(integer) to get a date
Posted by: NG0824 - Sep-02-2020, 07:22 PM - Forum: General Coding Help - Replies (4)

I am trying to add years in integer form in date to get final output as date. Could anyone help with syntax.

Print this item

  error in class
Posted by: non_name092 - Sep-02-2020, 05:07 PM - Forum: General Coding Help - Replies (1)

[python]class Student():
def __init__(self, name, CNE, Level ):
self.name=name
self.CNE=CNE
self.Level=Level
def ..... More

Print this item

  How to create db table with SQLite and SQLAlchemy??
Posted by: marcello86 - Sep-02-2020, 01:21 PM - Forum: General Coding Help - Replies (1)

Hi all I need urgent help I have been stuck on this for days!
I'm trying to create a table in an existing db with SQLAlchemy/SQLite where I have to s..... More

Print this item

  Why is first argument sometimes rows and sometimes columns?
Posted by: Mark17 - Sep-02-2020, 01:15 PM - Forum: General Coding Help - Replies (1)

I can do this:

# creating a value with all null values in new data frame 
new["Null Column"]= None
In this example, the fi..... More

Print this item

  svm script
Posted by: falahfakhri - Sep-02-2020, 11:29 AM - Forum: General Coding Help - Replies (3)

Dear All the following svm script, gives the error (raise IOError("Cannot understand given URI: %s." % uri_r),

Would you please to show me where is ..... More

Print this item

  Method not printing total or average
Posted by: SephMon - Sep-02-2020, 09:54 AM - Forum: General Coding Help - Replies (2)

The list is populated with user input but it doesn't print out the total when it sums all the numbers or average of list


[python]list = []
total..... More

Print this item

  How can I count values between range dates ?
Posted by: Eidrizi - Sep-02-2020, 07:03 AM - Forum: General Coding Help - Replies (2)

Hello everyone,

This is my first post in Forum Python, I am new at this so please bear with me.

I have this Code which I am trying to get result..... More

Print this item

  Best way(s) to organize and use "global" values?
Posted by: pjfarley3 - Sep-02-2020, 05:10 AM - Forum: General Coding Help - Replies (6)

When writing some applications (e.g., games), one ends up having perhaps dozens or even hundreds of "global" values, of several types:

1. Predefine..... More

Print this item

  Still Stumped
Posted by: Milfredo - Sep-02-2020, 03:46 AM - Forum: General Coding Help - Replies (2)

I have watched a couple of videos and still stumped. The calc_value variable get assigned a number and I print it out and it is fine. But when I try a..... More

Print this item

  How could i change the python interpreter path of os.system()
Posted by: 12019202386 - Sep-02-2020, 03:44 AM - Forum: General Coding Help - Replies (2)

print(sys.executable) ==> /opt/tools/anaconda3/bin/python3
but
os.system("which python") ==> /usr/bin/python

How could i change the python interp..... More

Print this item

  How do I write a single 8-bit byte to a file?
Posted by: MysticLord - Sep-02-2020, 03:40 AM - Forum: General Coding Help - Replies (2)

Here's testfile.csv, where I'm storing values for my script to interact with.
[code]testfile.bin,0,0102030405
testfile.bin,16,060708090A
testfile.b..... More

Print this item

  merge excel
Posted by: pagara - Sep-02-2020, 02:51 AM - Forum: General Coding Help - Replies (1)

Hi

I want to merge and filter 2 excel sheets. They have different columns and one unique id.

I would want to leave other columns from these diff..... More

Print this item

  read python running terminal all text
Posted by: rafiqulalam - Sep-02-2020, 02:43 AM - Forum: News and Discussions - No Replies

I want to read the terminal text when running python script(for normal python script and for django python script) without writing to any file.
Secon..... More

Print this item

  print scripts example includes comma that seems to serve no purpose
Posted by: flour_power_33 - Sep-02-2020, 02:27 AM - Forum: General Coding Help - Replies (5)

In [1]: print('Enter two integers, and I will tell you',
...: 'the relationships they satisfy.')
Enter two integers, and I will tell you the rela..... More

Print this item

  New in Python. Have question on my code.
Posted by: ztx19981023 - Sep-02-2020, 02:18 AM - Forum: General Coding Help - Replies (2)

The problem is i have to print out the average length of words in each lines in a txt documents.

My code so far: i know how to count the number in..... More

Print this item

  Idle and pycharm problem
Posted by: gr3yali3n - Sep-02-2020, 12:21 AM - Forum: General Coding Help - Replies (3)

So I recently upgraded to Catalina now idle freezes upon saves, so I use pycharm often, I used the terminal to install pillow , I can import PIL with ..... More

Print this item

  [split] Help with learning threading please.
Posted by: kalinuxman - Sep-02-2020, 12:14 AM - Forum: General Coding Help - Replies (1)

Hi guys I write this simple code

[align=center][b][color=#E74C3C][font=Comi..... More

Print this item

  DNP3 file transfer with python
Posted by: Aussie - Sep-01-2020, 10:45 PM - Forum: General Coding Help - No Replies

Hi,
has anyone had anything to to with DNP3 file transfer using python?
Or something similar that may help get an understanding.
Thanks,

Print this item

  help pls!
Posted by: dirtdude - Sep-01-2020, 10:41 PM - Forum: General Coding Help - Replies (2)

uncomfirmedusers = ['bob','joe','mikey']
comfirmedusers = []

while uncomfirmedusers:
currentuser = uncomfirmedusers.pop()


print("v..... More

Print this item

  Outlook Emails & HTML Table in Message Body
Posted by: JoeDainton123 - Sep-01-2020, 09:43 PM - Forum: General Coding Help - Replies (1)

Hi all

I was hoping someone could help me with the following python problem.

I am trying to send emails from my outlook account via python. I am..... More

Print this item

  local variable 'spider_1_health' referenced before assignment
Posted by: Tbot1000 - Sep-01-2020, 08:56 PM - Forum: Game Development - Replies (1)

Hello!
I've been coding a text based game which includes many variables, I have condensed the code more to make it easier to debug. I have a problem ..... More

Print this item

  Help needed for a python package
Posted by: keysson - Sep-01-2020, 08:30 PM - Forum: General Coding Help - Replies (1)

Hi!
I really need help using this python package: https://github.com/ML-KULeuven/socceraction

I have data in xml from Opta, and I want to use this..... More

Print this item

  have problem printing after ‘else’
Posted by: tester_V - Sep-01-2020, 07:01 PM - Forum: General Coding Help - Replies (11)

Hi,
I have 100mb files and I’m looking for some lines (find1, find2, find3 and so on) in each file.
I’d like to print out to a file:
‘file name’ ..... More

Print this item

  Incrementing variable counter
Posted by: Milfredo - Sep-01-2020, 06:57 PM - Forum: General Coding Help - Replies (4)

This is a general question.

Function one uses ypos as variable for the y ie; place(x = 400, y=y_pos)

function two uses it also.


func..... More

Print this item

  getting a file in memory
Posted by: Skaperen - Sep-01-2020, 06:52 PM - Forum: News and Discussions - Replies (4)

you are creating a script using a new module. it has just one function. the documentation is very short and simple and says that the return value of..... More

Print this item

  Tkinter: How to assign calculated value to a Label
Posted by: LoneStar - Sep-01-2020, 06:33 PM - Forum: GUI - Replies (7)

I'm using Python3.8 for my raspberry pi4 project. I have a GUI that initially displays the label within a grid. I also have a button that when click..... More

Print this item

  Creating a “Player” class, and then importing it into game
Posted by: onizuka - Sep-01-2020, 04:44 PM - Forum: Game Development - Replies (4)

I moved the "player" functions to the class.I have a problem with drawing.I get an error "TypeError: draw() missing 1 required positional argument: 's..... More

Print this item

  Create Python executable
Posted by: GabrielPoppes - Sep-01-2020, 04:34 PM - Forum: GUI - No Replies

Hello, I am breaking my head for a few days with a problem ... I finished an application in Python, and in the graphical interface I used QT Designer,..... More

Print this item

  math problem using recursion?
Posted by: mnh001 - Sep-01-2020, 03:54 PM - Forum: Homework - Replies (14)

First the problem.
1. Start with a semi-prime (eg, 15 = 3 * 5).
2. Take the factors and concatenate them both forwards and backwards to give 2 new n..... More


Attached Files

Thumbnail(s)
   
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Graph Interpolate Difficu... Less than 1 minute ago Tuurbo46 deanhystad General Codin...
  link variable to exc bloc... 11 hours ago Astrobert Gribouillis General Codin...
  PyQt6 QWidgets and system... Yesterday, 18:47 stevecoh1 Axel_Erfurt GUI
  best way to learn python Yesterday, 16:13 dutch mamta25 News and Disc...
  [SOLVED] Access keys and ... 11-17, 11:47 Winfried Winfried General Codin...
  PermissionError: [Errno 1... 11-17, 08:44 Tuurbo46 Tuurbo46 GUI
  How to make ball stay wit... 11-15, 16:07 nathanael 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...
  [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...
Most views
  The best Prog... 579152
  Tutorial Requ... 511559
  Web Scraping ... 442095
  Newbie with P... 386186
  New Users Int... 378785
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 6915
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
cruisesfares Today
SavingSquirrel199835 Yesterday
Astrobert Yesterday
DataScientist071 Yesterday
aminrony1999 11-17

User Panel Messages

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