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,979
» Latest member: silversimon2
» Forum threads: 38,732
» Forum posts: 175,563

Full Statistics

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

Latest Threads
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Yesterday, 07:43 AM
» Replies: 2
» Views: 373
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Yesterday, 12:21 AM
» Replies: 2
» Views: 1,005
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,061
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 739
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 3,045
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,488
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 9,064
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,518
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 1,405
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,734

 
  Why does time.sleep(wait) add time in python3 ?
Posted by: gerardg - Apr-28-2019, 02:17 AM - Forum: General Coding Help - Replies (4)

This code is run on raspberry pi from the Terminal.
The same code in Thonny Python (IDE) runs correctly.
I have run testDateTime.py on the Terminal ..... More

Print this item

  Automatic decipher a binary string ciphered by the CIPHER program
Posted by: DavidHG - Apr-27-2019, 10:40 PM - Forum: Code sharing - No Replies

The DECIPHERER program allows you, in some cases, to decipher a binary string ciphered by the ..... More

Print this item

  Decipher a plain text ciphered by the CIPHER program
Posted by: DavidHG - Apr-27-2019, 10:27 PM - Forum: Code sharing - No Replies

The DECIPHER program allows us to decipher a plain text ciphered by the ..... More

Print this item

  Cipher a plain text by using the logistic map
Posted by: DavidHG - Apr-27-2019, 10:09 PM - Forum: Code sharing - No Replies

The CIPHER program allows us to cipher a plain text by using the logistic map. For this, we need to insert the initial condition “Xo” (It shoul..... More

Print this item

  ValueError: dictionary update sequence element #0 has length 1; 2
Posted by: Jmekubo - Apr-27-2019, 10:05 PM - Forum: General Coding Help - Replies (4)

help resolve this error when trying to create network graph

[python]

# open nodes
with open('Twitter_SNA/nodes.csv', 'r')as nodescsv:
nonr..... More

Print this item

  Inclusive (closed) range with float numbers
Posted by: mapg - Apr-27-2019, 07:49 PM - Forum: General Coding Help - Replies (4)

Hi

I need to add range of numbers to some arrays used, but I see that range in Python is not for float numbers and is not inclusive, namely range i..... More

Print this item

  Object type of Node to json
Posted by: bhojendra - Apr-27-2019, 07:16 PM - Forum: General Coding Help - Replies (4)

I have Object type of Node like:

<Node id=1 labels={'First'} properties={'foo': 'foo', 'bar': 'bar'}>

I have tried to use like:

Response(dump..... More

Print this item

  How do i write tests for this code?
Posted by: hshivaraj - Apr-27-2019, 05:28 PM - Forum: General Coding Help - No Replies

Hi all.

I wrote a sample code recently. And I want to write some tests and I cant get my head around if I got my structure right. I have a few que..... More

Print this item

  How can we make the background transparent ?
Posted by: MrDrumX_ - Apr-27-2019, 04:58 PM - Forum: GUI - Replies (1)

Hello, i'm french Dance , i'm using "FenetreNomJoueur.attributes("-transparentcolor", "dodger blue")" ( FenetreNomJoueur is my window) on window..... More

Print this item

  bitwise rotation/classes
Posted by: msp1981 - Apr-27-2019, 04:45 PM - Forum: Homework - Replies (1)

The assignment is to: take data from input file, input file has 3 sets of columns, decimal number, L or R for left/right direction, and a rather large..... More

Print this item

  text widgets-insert problem
Posted by: genc74 - Apr-27-2019, 01:01 PM - Forum: GUI - Replies (3)

I am tring to pick 5 digits randomly( one line in one second) and display them om tkinter gui using either Label or Text widgets.

it works fine on ..... More

Print this item

  Radio button help
Posted by: Muzz - Apr-27-2019, 12:44 PM - Forum: GUI - Replies (5)

Hi everyone, Python noob here, im working on an assignment that is Tkinter heavy. Basically the endstate of the program is to display a GUI that allow..... More

Print this item

  scrolling a text using loop
Posted by: ebolisa - Apr-27-2019, 12:12 PM - Forum: General Coding Help - Replies (1)

Hi,

I'm trying to scroll a text on a 7 segment display. The display library doesn't have a scroll option so I made one up via a repetitive code. Beca..... More

Print this item

  Optimal Statements in Python
Posted by: dukoolsharma - Apr-27-2019, 12:07 PM - Forum: General Coding Help - Replies (2)

I am bit confused whether the below statements are optimal or not? Need help!

word= 'word'
print(word._len_())

Print this item

  NameError: name 'lst' is not defined
Posted by: Jmekubo - Apr-27-2019, 08:30 AM - Forum: General Coding Help - Replies (2)

Guys Kindly help identify this error.

[python]




# clean tweets
def remove_pattern(input_txt, pattern):
r = re.findall(pattern, input_..... More

Print this item

  python program on cards
Posted by: marc237 - Apr-27-2019, 08:10 AM - Forum: General Coding Help - Replies (3)

projects.raspberrypi.org/en/projects/deck-of-cards
please guys i need help when i am following the diferent steps the program is not working.the link..... More

Print this item

  what i repeatedly keeping wanting in Python
Posted by: Skaperen - Apr-27-2019, 06:03 AM - Forum: Bar - Replies (4)

many times i encounter uses for this one capability i wish Python had. i guess this is because of encountering other programming languages in the pas..... More

Print this item

  Numpy question
Posted by: pberrett - Apr-27-2019, 05:35 AM - Forum: General Coding Help - Replies (3)

Hi all

I have a question about extracting data from a numpy array in an efficient manner. Can anyone help?

The example is simple. I have a numpy..... More

Print this item

  PHP to Python
Posted by: mapg - Apr-27-2019, 04:31 AM - Forum: General Coding Help - Replies (11)

Hi All,

I learning Python and I see that my knowledge of this language is very poor as I am trying to translate a function from PHP to Python but I..... More

Print this item

  functool - partial errors
Posted by: SheeppOSU - Apr-27-2019, 02:05 AM - Forum: General Coding Help - Replies (1)

I am making a game - I didn't put it in Game Development because this is just about functools - and I have this button that I give a function for one ..... More

Print this item

  TO ELSE OR NOT TO ELSE?
Posted by: rxndy - Apr-27-2019, 02:03 AM - Forum: General Coding Help - Replies (4)

Should we always use else statements?

By using else statements you are kind of doing the same thing that the programming gods Ken Thompson and Rob Pi..... More

Print this item

  How to deal with code that blocks the mainloop, freezing the gui
Posted by: Yoriz - Apr-26-2019, 11:09 PM - Forum: GUI tutorials - Replies (1)

(The tkinter version of this can be found ..... More

Print this item

  lowercasing to strings before comparison
Posted by: SheeppOSU - Apr-26-2019, 08:56 PM - Forum: General Coding Help - Replies (4)

I have some code for logging in. Like most logins, I don't care about uppercase and lowercase for the username. Is there a way I can lowercase all the..... More

Print this item

  Development Server Problem (Win10)
Posted by: SMY1 - Apr-26-2019, 06:24 PM - Forum: General Coding Help - No Replies

Hi,

I am new to Python and am starting to learn Django through Corey Schafer's YouTube tutorials.

When I run a development server in the command..... More

Print this item

  folder PyQt5 created during creation exe
Posted by: atlass218 - Apr-26-2019, 06:23 PM - Forum: General Coding Help - No Replies

Hello;
I just created an exe of an application made under Tkinter (python 3.6) with this code:

python setup.py build
the creation..... More

Print this item

  List slicing issue
Posted by: Irhcsa - Apr-26-2019, 06:22 PM - Forum: General Coding Help - Replies (3)

So I have a problem that I've been working on for like 8 hours now. It's driving me insane.

The goal here is to open a .txt file I created that co..... More

Print this item

  Convert List of Dictionary to dictionary of dictionary list in python
Posted by: kk230689 - Apr-26-2019, 02:25 PM - Forum: General Coding Help - Replies (2)

Hi ALl ,

Need your help in python code for the following output required. thanks in advance.

Source file:


[ { "Env" :"dit",
..... More

Print this item

  PyInstaller not picking up selenium and urllib3
Posted by: davork - Apr-26-2019, 11:08 AM - Forum: GUI - Replies (5)

Hello World,
Smile
I am having a problem when generating exe file using PyInstaller.
This is the command that I run to generate an executable..... More

Print this item

  Need help with a simple function
Posted by: WorldPark - Apr-26-2019, 10:39 AM - Forum: General Coding Help - Replies (4)

Hi,

I am totally new to Python and programming. However, I tryed to create a simple function, which is not working. Please help.

[python]
def m..... More

Print this item

  making primary numbers
Posted by: akbarasghar - Apr-26-2019, 09:44 AM - Forum: General Coding Help - Replies (3)

hi
I was trying to print prime numbers from 3 to 100

this is my code
[python]
i=3
n=2
while i<100 :

while n < i :
if i%n == 0:
..... More

Print this item

  Python - joining xmls together invalid token error
Posted by: jan86 - Apr-26-2019, 08:52 AM - Forum: General Coding Help - No Replies

I have a function which makes get request, parse xml file and returns:

[python]def get_object(object_name):
...
encoded_text = response.text...... More

Print this item

  Need your Help
Posted by: bil007 - Apr-26-2019, 08:52 AM - Forum: General Coding Help - Replies (3)

i tried to execute this code below but i got this error can someone help me


[python]#function for scatter plot
def myscatter(df,dfpos,dfneg):
..... More

Print this item

  Connect to database OVH
Posted by: Serferi - Apr-26-2019, 07:34 AM - Forum: General Coding Help - No Replies

Hello, I'm trying to make a python script that I run from my server, this script need to modify a mysql database that is in localhost at ovh, so I hav..... More

Print this item

  Display the bottom image of the line and cut the upper image using Opencv
Posted by: jenkins43 - Apr-26-2019, 07:33 AM - Forum: General Coding Help - Replies (1)

I am trying to crop the live video diagonally. With the help of cv.line, I have mentioned the dimensions and my goal is to display the video of the lo..... More


Attached Files

Thumbnail(s)
   
Print this item

  Identify two specific words next to each
Posted by: stahorse - Apr-26-2019, 06:10 AM - Forum: General Coding Help - Replies (9)

Hi,

I'm trying to identify two specific words next to each other and remove them from a string. I though of using REPLACE, but this can work on one w..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Integer Factorization Too... Yesterday, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... Yesterday, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... 09-29, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
  My First App 09-27, 10:53 BCopeland64 carlbidwell Code Review
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
  pdf file processing: how ... 09-26, 13:14 Pavel_47 noisefloor General Codin...
  Regarding pdf for PCEP an... 09-26, 09:50 P212 Biks News and Disc...
Most views
  The best Prog... 577419
  Tutorial Requ... 500861
  Web Scraping ... 441066
  Newbie with P... 385125
  New Users Int... 369655
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+ 12091
buran 8178
snippsat 7370
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
silversimon2 Yesterday
alissapena8 Yesterday
hoki1881 Yesterday
stephaniehendrix Yesterday
Schirag Yesterday

User Panel Messages

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