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,272
» Latest member: DataScientist071
» Forum threads: 38,787
» Forum posts: 175,856

Full Statistics

Online Users
There are currently 28 online users.
» 0 Member(s) | 26 Guest(s)
Bing, Google

Latest Threads
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 10:27 PM
» Replies: 3
» Views: 170
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
Yesterday, 11:47 AM
» Replies: 4
» Views: 158
PermissionError: [Errno 1...
Forum: GUI
Last Post: Tuurbo46
Yesterday, 08:44 AM
» Replies: 2
» Views: 127
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Nov-15-2025, 04:07 PM
» Replies: 2
» Views: 173
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Nov-15-2025, 01:00 PM
» Replies: 5
» Views: 350
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 69
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Nov-14-2025, 06:38 PM
» Replies: 0
» Views: 116
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 365
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 208
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 322

 
  Binary File Error
Posted by: SalsaBeanDip - Oct-12-2020, 08:59 PM - Forum: General Coding Help - Replies (1)

I am trying to create a binary file and save data to it but I get the following error message :

File was loaded in the wrong encoding: 'UTF-8'

I..... More

Print this item

  Towers of Hanoi - print 3 Towers
Posted by: PythonMarlem - Oct-12-2020, 08:42 PM - Forum: Game Development - Replies (3)

Hello,

I'm developing Towers of Hanoi as a console application.
It doesn't matter whether the 3 towers are stored in 3 stacks or 3 arrays.
I'm lo..... More

Print this item

  Import output from python script to another
Posted by: varietyjones - Oct-12-2020, 08:31 PM - Forum: General Coding Help - Replies (1)

Hello
I want to find a solution which make me do the whole idea below:
I want to import an output of my python script in another python script file..... More

Print this item

  rain theme glitch?
Posted by: metulburr - Oct-12-2020, 07:33 PM - Forum: Board - Replies (2)

@[rain]

sometimes when i look at the thread listing i get the toplinks moving along but far below the normal X axis. See pictures below

Notice t..... More


Attached Files

Thumbnail(s)
       
Print this item

  Account vanished
Posted by: Atekka - Oct-12-2020, 07:11 PM - Forum: Board - Replies (3)

I recently made an account under the name WXstudio and it seems it has just vanished, or been deleted. The only thing I did on that account in the sho..... More

Print this item

  Cannot find module 'torch'
Posted by: ErnestTBass - Oct-12-2020, 04:45 PM - Forum: General Coding Help - Replies (6)

I am getting the error message in my python program.
[code]
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-5-2940563e030c> in..... More

Print this item

  ADT related stacks
Posted by: prasanthbab1234 - Oct-12-2020, 04:33 PM - Forum: Homework - Replies (8)

Hi Team,

I have following query but littlie confusion to fix it.
[quote]
##Basic input#####
def push(stack, new_item):
    stack.append(new_ite..... More

Print this item

  How to run script from batch file?
Posted by: jmair - Oct-12-2020, 04:05 PM - Forum: General Coding Help - Replies (1)

I have Anaconda on a Windows Server. I would like to run a script at ever start up from Task Scheduler. I've only ever been running my code from Spyde..... More

Print this item

  Check password from sqlite db
Posted by: Maryan - Oct-12-2020, 02:36 PM - Forum: General Coding Help - No Replies

Any help is appreciated, I'm a beginner, and I'm trying to find where is my error. I can set up a new password and insert it into the DB, but I'm not ..... More

Print this item

  Call local variable of previous function from another function with Python3 & tkinter
Posted by: Hannibal - Oct-12-2020, 02:06 PM - Forum: GUI - Replies (5)

Hi Smile

I am building password generator with python and tkinter as GUI. The function copy should copy paStr variable which re..... More

Print this item

  API design question: use methods or properties?
Posted by: johsmi96 - Oct-12-2020, 01:52 PM - Forum: General Coding Help - Replies (1)

This is something that is really bugging me, but I cannot come up with a good strategy for how to decide:
should I use ordinary methods or properties..... More

Print this item

  My first Python project - Snake game
Posted by: bear - Oct-12-2020, 12:50 PM - Forum: Code Review - Replies (3)

Hi guys,

after being a PHP and JS developer for many years, I decided to give Python a shot. I love it so far.

Here's my first little project - ..... More

Print this item

  MERGE SQL in oracle executemany
Posted by: kaladin - Oct-12-2020, 11:48 AM - Forum: General Coding Help - No Replies

Hi there,

I'm looking to insert values into an oracle table (my_table) using the query below. The insert query works when the PROJECT is not NULL/e..... More

Print this item

  Writing to existing excel sheet
Posted by: jksvend - Oct-12-2020, 11:19 AM - Forum: General Coding Help - No Replies

Hi all,

Trying to insert a value into an existing spreadsheet.

I get an error in this line (worksheet = writer.sheets['Sheet1'])

Hope some ..... More

Print this item

  alerts in new theme
Posted by: metulburr - Oct-12-2020, 10:58 AM - Forum: Board - Replies (4)

I have noticed i have a hard time determining the alerts in the new theme compared to the default mybb theme. In default, the color changes to red as ..... More

Print this item

  Make the answer of input int and str
Posted by: enderfran2006 - Oct-12-2020, 09:21 AM - Forum: General Coding Help - Replies (2)

Hello! I am trying to figure out how to make the answer of an input be both a string and an integer.
Here is my code:
[python]event = int(input("Whe..... More

Print this item

  Linear search issue
Posted by: oli_action - Oct-12-2020, 07:36 AM - Forum: Homework - Replies (5)

Hi everyone,

I wrote this code for a linear search. I would like the loop to keep running until all the positions of the number entered are found, ..... More

Print this item

  poplib - parsing message body, could somebody please help explain this code
Posted by: t4keheart - Oct-12-2020, 07:23 AM - Forum: General Coding Help - Replies (2)

Hi all, 
We have a python program that works with the ibm watson transcriber to transcribe voicemail and send to appropriate staff. 
It stopped work..... More

Print this item

Question Save list with nested list into CSV
Posted by: SpongeB0B - Oct-12-2020, 07:13 AM - Forum: General Coding Help - Replies (1)

Hi everyone,

I would like to save a list (with nested list inside) to a CSV

the problem is that the nested list are quoted with " sign in the cs..... More

Print this item

  print a line break in writelines() method
Posted by: leodavinci1990 - Oct-12-2020, 06:07 AM - Forum: General Coding Help - Replies (1)

lines=["Line 1","Line 2"]
f=open(r"C:\Users\....\Documents\somefile.txt","w")
f.writelines(lines)
f.close()


How to print a line breaker betwee..... More

Print this item

  Opening file and outputting its text content example
Posted by: leodavinci1990 - Oct-12-2020, 05:27 AM - Forum: General Coding Help - Replies (1)

If the Python file below is run on a text file containing the following:

[i]Hello! Welcome to demofile.txt
This file is for testing purposes.
Goo..... More

Print this item

  Active Directory add an attribute.
Posted by: SpongeB0B - Oct-12-2020, 04:35 AM - Forum: General Coding Help - Replies (2)

Hi everyone,

I'm exploring pyad to manipulate active directory.

I already use :

update_attribute()
But I don't see anywhere..... More

Print this item

  my discussionss
Posted by: Skaperen - Oct-12-2020, 12:45 AM - Forum: Board - Replies (9)

there used to be a text link "My Discussions"  that listed thread i had started or posted in.  where did this button go?

Print this item

  how to pass arguments between pythons scripts?
Posted by: electricDesire - Oct-11-2020, 10:21 PM - Forum: General Coding Help - Replies (2)

Hello, everybody,
I'm new in python and i'm trying to pass arguments between different scripts but they only update one way:
i'm calling the first ..... More

Print this item

  pygame get window position
Posted by: vskarica - Oct-11-2020, 09:10 PM - Forum: Game Development - Replies (3)

Hi!
This seems like an obviously asked and answered and if so, I apologize. However, I cannot seem to be able to find the answer, and I have lost a f..... More

Print this item

  Best approach before adding features - Movie information script
Posted by: pythonnewbie138 - Oct-11-2020, 09:03 PM - Forum: Code Review - Replies (2)

Hi everyone,

I think I've finally wrapped my mind around classes but I would like to get some feedback on my current script before adding additiona..... More

Print this item

  numpy.ndarray' object is not callable
Posted by: natareid - Oct-11-2020, 06:37 PM - Forum: Data Science - Replies (4)

Hi,

I'm new to python and I'm trying to call a function and use it to calculate the median of a dataset but when I run it I get the following error..... More

Print this item

  How can I add string.upper()
Posted by: noahneature - Oct-11-2020, 06:28 PM - Forum: General Coding Help - Replies (2)

I can't seem to understand how to input tempUnits=tempUnits.upper() so that the user can put upper and lower case F
[python]
tempUnits = input("Ente..... More

Print this item

  Homework help
Posted by: BeardedTorus - Oct-11-2020, 05:11 PM - Forum: Homework - Replies (5)

Here's my assignment:
Odd/Even Counter
In this chapter you saw an example of how to design an algorithm that determines whether a number is even or ..... More

Print this item

  How to check spec table in another df
Posted by: Mekala - Oct-11-2020, 02:25 PM - Forum: General Coding Help - No Replies

Hi,
I have data frame as below:

group subgroup category name   T    S     P     R
A1      W           1           MAK     2    5.1  2     6 
A1 ..... More

Print this item

  Annuity function for school - syntax error
Posted by: peterp - Oct-11-2020, 01:21 PM - Forum: Homework - Replies (2)

Basic question but I`m doing something wrong. When run (windows idle 3.8) I receieve name 'a' is not defined. Thanks for help.

def instalment(a,b..... More

Print this item

  Comparing recursion and loops using two scripts (basic factorial)
Posted by: Drone4four - Oct-11-2020, 12:56 PM - Forum: General Coding Help - Replies (3)

The “factorial” of the integer 5 is the product of the first 5 integers multiplied against each other. So, 1*2*3*4*5 = 120.

Here is a script modell..... More

Print this item

  Copy files from subfolders into same name of subfolders at other directory
Posted by: rathoreanil - Oct-11-2020, 11:17 AM - Forum: General Coding Help - Replies (1)

Hello everyone,

I need python script, which should be capable for copying files from different subfolders into new directory and this new directory..... More

Print this item

  New Theme
Posted by: snippsat - Oct-11-2020, 11:07 AM - Forum: Board - Replies (9)

So we had a lot trouble with Forum lately,bye unwanted access.
Now that Forum is secure and updated,thanks to @D0X3D for all help we have gotten.

..... More

Print this item

Exclamation Pip yüklerken daha önce almadığım hataları alıyorum
Posted by: mehmetdgrd - Oct-11-2020, 10:45 AM - Forum: General Coding Help - Replies (2)

Hi I just started python I was able to add pip with the pip setup (pip name) command before. but when i try to add a pip for 2 days i get an error ........ More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Graph Interpolate Difficu... Yesterday, 22:27 Tuurbo46 deanhystad General Codin...
  [SOLVED] Access keys and ... Yesterday, 11:47 Winfried Winfried General Codin...
  PermissionError: [Errno 1... Yesterday, 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...
  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... 579113
  Tutorial Requ... 511315
  Web Scraping ... 442068
  Newbie with P... 386136
  New Users Int... 378475
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 6914
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
DataScientist071 Today
aminrony1999 Yesterday
fobby888 Yesterday
digitalboy346 Yesterday
ben9090o Yesterday

User Panel Messages

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