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,964
» Latest member: Edzed4431
» Forum threads: 38,730
» Forum posts: 175,545

Full Statistics

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

Latest Threads
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: tester_V
29 minutes ago
» Replies: 2
» Views: 24
My goal to be hired worki...
Forum: News and Discussions
Last Post: Larz60+
5 hours ago
» Replies: 1
» Views: 452
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
10 hours ago
» Replies: 4
» Views: 1,991
My First App
Forum: Code Review
Last Post: carlbidwell
Yesterday, 10:53 AM
» Replies: 8
» Views: 8,554
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 03:54 AM
» Replies: 3
» Views: 457
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 912
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 941
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,210
Regarding pdf for PCEP an...
Forum: News and Discussions
Last Post: Biks
Sep-26-2025, 09:50 AM
» Replies: 1
» Views: 1,824
Using Python to SSH and R...
Forum: Networking
Last Post: SprunkiRetake
Sep-26-2025, 03:53 AM
» Replies: 1
» Views: 2,863

 
  How to kill a bash script running as root from a python script?
Posted by: jc_lafleur - Jun-26-2020, 09:42 PM - Forum: General Coding Help - Replies (4)

Not sure if this is the best place to ask this question, but I've been looking all over Stack Exchange and other forums for the past week and still ha..... More

Print this item

  Tkinter Calculator
Posted by: menator01 - Jun-26-2020, 09:25 PM - Forum: Code sharing - Replies (2)

Tried my luck with a simple calculator. As always I welcome feedback.
Esc key will clear. numpad keys work, and enter keys to get totals
[python]
#..... More

Print this item

  int, floats, eval
Posted by: menator01 - Jun-26-2020, 08:19 PM - Forum: General Coding Help - Replies (2)

Given the scenario eval(10/2) would return 5.0 and eval(7/3) would return 2.33.
M..... More

Print this item

  File handling
Posted by: knollfinder - Jun-26-2020, 07:48 PM - Forum: General Coding Help - Replies (3)

Although I have been programming since 1956, I can't get beyond simple things in Python, in particular, getting data into and out of files.
I opened ..... More

Print this item

  Modify code from running program ?
Posted by: samuelbachorik - Jun-26-2020, 07:27 PM - Forum: General Coding Help - Replies (2)

Hello i want to ask for help. I have simple quiz program with pyqt5. PRogram asks question and you fill a,b,c answers and it gives you your result in ..... More

Print this item

  Counter of the duplicated packets from a pcap file
Posted by: salwa17 - Jun-26-2020, 07:20 PM - Forum: General Coding Help - Replies (8)

I want to count the duplicated packets from a pcap file. Duplicated packets are the packets whose the sequence number were already seen previously For..... More

Print this item

  Empty response to request causing .json() to error
Posted by: t4keheart - Jun-26-2020, 07:05 PM - Forum: General Coding Help - Replies (1)

I have a problem with my code in that the response to my API request is occasionally coming back empty, which causes .json() to error out, as it expec..... More

Print this item

  Install Fails v3.8.3
Posted by: flyboy91901 - Jun-26-2020, 05:31 PM - Forum: General Coding Help - No Replies

Windows 10 with latest updates Python v3.8.3 fails with error code: 0x80070643

Any ideas to get around this?

Gary


Never mind - thought it s..... More

Print this item

  Unicode lists
Posted by: broodmdh - Jun-26-2020, 05:20 PM - Forum: General Coding Help - Replies (1)

I have a series of text files that appear to contain a list of unicode values. For example, one file will have the following:

[u'01', u'13', u'20'..... More

Print this item

  Read CSV error: python KeyError: 'Time'
Posted by: charlicruz - Jun-26-2020, 01:47 PM - Forum: General Coding Help - Replies (1)

have the following csv structure file. Time 1 2 3 01/01/2010 00:00 274,16 576,44 1523,9

I tried to convert time to timestamp but I cannot plot the ..... More

Print this item

  Please, how do I call the method inside this class
Posted by: Emekadavid - Jun-26-2020, 12:58 PM - Forum: Homework - Replies (1)

I understand about methods and variables in classes but I was reading this book on data structures and understand what the author was saying until he ..... More

Print this item

  How to save CSV file data into the Azure Data Lake Storage Gen2 table?
Posted by: Mangesh121 - Jun-26-2020, 11:59 AM - Forum: General Coding Help - No Replies

Hi All,

I am looking for CSV data load into the Azure Data Lake Storage Gen2 table but failed to find a good article.

Can someone know good link..... More

Print this item

  How do I store the data in another txt file
Posted by: blacklight - Jun-26-2020, 09:46 AM - Forum: General Coding Help - Replies (1)

Hi I'm trying to figure out how I can use a txt files for my users and passwords. I have a function that let's you create a new user, however I want t..... More

Print this item

  [Selenium]Timed out receiving message from renderer: 10.000
Posted by: wood_6636 - Jun-26-2020, 08:59 AM - Forum: General Coding Help - No Replies

Hi all,

We are suffered from the following error that when the time we run via cron the below error occur intermittently (Sometime it works and r..... More

Print this item

  Choose your own adventure game
Posted by: noahc2004 - Jun-26-2020, 08:19 AM - Forum: General Coding Help - Replies (2)

I get confused when creating these. I want to end the code if you choose one option so that route stops but carry on in the other. Please help.[python..... More

Print this item

  Simple beginner query--Please help!Thanks
Posted by: Nienie - Jun-26-2020, 07:56 AM - Forum: Homework - Replies (3)

Hi everyone,

I am a very fresh learner and have a question regarding the guess number game below. Please help!

My question is the result still ..... More

Print this item

  Using .join()
Posted by: extricate - Jun-26-2020, 06:40 AM - Forum: Homework - Replies (3)

Hi there,

I'm supposed to join up the string by entering an input. I can't seem to get it to work, I suspect the separator i input might not be a s..... More

Print this item

  how does .join work with list and dictionaries
Posted by: gr3yali3n - Jun-26-2020, 06:28 AM - Forum: General Coding Help - Replies (7)

[python]
location={
0:'quit',
1:'town',
2:'beach',
3:'country side',
4:'city',
5:'outer space'
}

exits=[
{'Q':0},
{'W':2,'E':3,'N..... More

Print this item

  Stuck comparing two floats
Posted by: Tizzle - Jun-26-2020, 06:08 AM - Forum: General Coding Help - Replies (7)

Good morning all,

I am trying to compare two floats, they are in fact application version numbers.
The code is old and in python 2.7 because certain ..... More

Print this item

  Looking for help on making a script [no idea where to start]
Posted by: Chietnemese - Jun-26-2020, 02:53 AM - Forum: General Coding Help - Replies (1)

Was looking to make a script for a game i play to click on buttons as they appear on screen because its just too hard for me to do lol the buttons app..... More

Print this item

  Assigning Column nunique values to another DataFrame column
Posted by: Pythonito - Jun-26-2020, 02:26 AM - Forum: General Coding Help - Replies (1)

I'm having issues assigning an nunique value to a dataframe column.

Can't show real data but dataframe df is like below:

[python]
Doc_Set D..... More

Print this item

  Can't install Numpy in Pycharm
Posted by: asdasdasd - Jun-26-2020, 02:03 AM - Forum: General Coding Help - Replies (4)

I have the latest Pycharm version on Windows 10

https://imgur.com/bXPM2ao

and when I try to install the library numpy through the Pycharm I get ..... More

Print this item

  Iterating Large Files
Posted by: Robotguy - Jun-25-2020, 10:46 PM - Forum: General Coding Help - Replies (10)

Hello,

I am a beginner and will appreciate any alternatives to handle my problem. Simply put, I have two files, containing one vector each. Aim is ..... More

Print this item

  open('foo','ab+')
Posted by: Skaperen - Jun-25-2020, 10:31 PM - Forum: News and Discussions - Replies (6)

what does this mode really do in open('foo','ab+')? does it work only beyond the end of an existing file?

Print this item

  Project files, Python files
Posted by: Heyjoe - Jun-25-2020, 10:14 PM - Forum: General Coding Help - Replies (4)

Hello Python Users

I am a beginner in Python. I use the Pycharm editor. I have a project file called Myproject.py. This file is stored in the Py..... More

Print this item

  lexical diversity calculation
Posted by: AOCL1234 - Jun-25-2020, 08:52 PM - Forum: General Coding Help - Replies (1)

How does one limit text length when calculating lexical diversity? For instance, say I would like to calculate the lexical diversity of TextA. While i..... More

Print this item

  Serialization and Deserialization between JSON obj and Python obj
Posted by: Yoki91 - Jun-25-2020, 07:24 PM - Forum: General Coding Help - Replies (4)

Hey guys,
I am currently learning serialization and deserialization between JSON obj and Python obj, there's the sample code:

[python]
class Who:..... More

Print this item

  Assigning Column nunique values to another DataFrame column
Posted by: Pythonito - Jun-25-2020, 05:04 PM - Forum: Data Science - No Replies

I'm having issues assigning an nunique value to a dataframe column.

Can't show real data but dataframe df is like below:

[python]
Doc_Set Doc..... More

Print this item

  Need help with NPC (bot)
Posted by: Paul_Choi06 - Jun-25-2020, 04:44 PM - Forum: Game Development - Replies (3)

Hi, my name is Paul and I would like to make a simple game. In the game I wish to add a bot that could jump at random times on its own. It would be am..... More

Print this item

  Help with for-loop printing. I want it to print only once.
Posted by: blacklight - Jun-25-2020, 04:06 PM - Forum: Homework - Replies (2)

Hi I'm new to python and I'm currently working on a python login programm for school. this is what I have so far:
The thing is when I intentionally t..... More

Print this item

  Python GUI for Android - ebook for free
Posted by: OlafArtAnanda - Jun-25-2020, 04:01 PM - Forum: News and Discussions - Replies (2)

Hello
After I wrote now my third book about Python GUI, I have now created a new website and also a newsletter.

These days am giving away my newes..... More

Print this item

  String index out of bounds ( Python : Dict )
Posted by: kommu - Jun-25-2020, 03:55 PM - Forum: General Coding Help - Replies (2)

Hello All,

I am trying to convert Roman number to Integer (III-->3) and to do that I need to compare characters one by one in a dictionary. How do ..... More

Print this item

  What am I doing wrong to not get the answer
Posted by: pav1983 - Jun-25-2020, 03:21 PM - Forum: Homework - Replies (7)

[i]In this challenge you will be given a relation between two numbers, written as a string.

Here are some example inputs:

"2 = 2", "8 < 7", "5 =..... More

Print this item

  Can someone help me optimize this game for large number of strings
Posted by: Emekadavid - Jun-25-2020, 11:30 AM - Forum: Homework - Replies (13)

I was given an assignment to create a game that takes a string as input and then evaluate the substrings starting with a consonant and the substrings ..... More


Attached Files

.txt   testcase.txt (Size: 4.88 KB / Downloads: 448)
Print this item

  what's homogeneus items defined by list
Posted by: frank0903 - Jun-25-2020, 10:16 AM - Forum: News and Discussions - Replies (5)

Quote:Lists are mutable sequences, typically used to store collections of homogeneous items
what's homogeneous items or homogeneous data?
..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Comparing 2 100GB Drives/... 29 minutes ago tester_V tester_V General Codin...
  My goal to be hired worki... 5 hours ago GnomeSweetGnome Larz60+ News and Disc...
  what does % stand for in ... 10 hours ago arbiel Gribouillis General Codin...
  My First App Yesterday, 10:53 BCopeland64 carlbidwell Code Review
  Unable to resolve FileNot... Yesterday, 03:54 llarkin6 Pedroski55 General Codin...
  [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...
  Using Python to SSH and R... 09-26, 03:53 justaguy SprunkiRetake Networking
  extracting data from a us... 09-25, 13:49 Perry DeaD_EyE General Codin...
Most views
  The best Prog... 577189
  Tutorial Requ... 500169
  Web Scraping ... 440893
  Newbie with P... 384905
  New Users Int... 369166
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+ 12089
buran 8176
snippsat 7367
deanhystad 6896
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Edzed4431 Yesterday
chaoh1911 Yesterday
KaydenJonah098 Yesterday
carlbidwell Yesterday
llarkin6 09-26

User Panel Messages

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