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,280
» Latest member: ndx101
» Forum threads: 38,790
» Forum posts: 175,869

Full Statistics

Online Users
There are currently 47 online users.
» 0 Member(s) | 40 Guest(s)
Bing, Facebook, Google, Google Image

Latest Threads
How to put my game loop i...
Forum: Game Development
Last Post: Santoro
2 hours ago
» Replies: 12
» Views: 5,997
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
3 hours ago
» Replies: 4
» Views: 1,444
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Yesterday, 02:10 PM
» Replies: 2
» Views: 93
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Yesterday, 06:48 AM
» Replies: 0
» Views: 32
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Yesterday, 04:46 AM
» Replies: 2
» Views: 4,283
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Nov-19-2025, 08:34 PM
» Replies: 3
» Views: 299
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Nov-19-2025, 05:03 AM
» Replies: 1
» Views: 146
PyQt6 QWidgets and system...
Forum: GUI
Last Post: Axel_Erfurt
Nov-18-2025, 06:47 PM
» Replies: 2
» Views: 211
best way to learn python
Forum: News and Discussions
Last Post: mamta25
Nov-18-2025, 04:13 PM
» Replies: 5
» Views: 3,116
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
Nov-17-2025, 11:47 AM
» Replies: 4
» Views: 257

 
  Need help with NPC (bot)
Posted by: Paul_Choi06 - Jun-27-2020, 09:19 PM - Forum: General Coding Help - No Replies

I created a simple game but I would like to make the NPC (bots) be able to jump at random times. Here is my code:

[python]
import pygame
import r..... More

Print this item

  D-Pad/No dependency platformer + tilemap
Posted by: michael1789 - Jun-27-2020, 08:59 PM - Forum: Code sharing - No Replies

Contoler examples are hard to find, so I'm sharing this.

Plug in your controller and run the file. "Start" resets and "B" jumps.

It's meant t..... More

Print this item

  cursor cross hairs want date not x index
Posted by: bapo10 - Jun-27-2020, 08:14 PM - Forum: GUI - No Replies

I am using the following cursor class called from a data manipulation routine. I simply want to output the date from the xaxis not the x value ..... More

Print this item

  text to speech
Posted by: Heyjoe - Jun-27-2020, 07:42 PM - Forum: General Coding Help - Replies (11)

Fellow Python Users,

I want to put several words in a list. Then tell Python to say the word.

I did some searches on text to speech. I found..... More

Print this item

  How to calculate the year by adding n months?
Posted by: pav1983 - Jun-27-2020, 06:11 PM - Forum: Homework - Replies (19)

Hi Everyone,

I've successfully solved many problems. I'm even starting to solve some in the 'easy' category on Edabit. However, this 'very easy' ..... More

Print this item

  Code error
Posted by: python_learn - Jun-27-2020, 05:51 PM - Forum: General Coding Help - Replies (2)

Hello Friends

I am new to Python world. I am trying to practice some code and I am not getting the result as expected.

Here is the code:

[py..... More

Print this item

  Finding an element in a 1d list in a 2d array
Posted by: lionrocker221 - Jun-27-2020, 04:48 PM - Forum: General Coding Help - No Replies

Hello,
In this code, neighbors is a list that is generated from m, from the point of view of "1" in the matrix. I'm ..... More

Print this item

  bootstraping
Posted by: shiprakumari18jan1822 - Jun-27-2020, 04:22 PM - Forum: Data Science - No Replies

Plz any one help me to write python code to bootstrap the input and output dataset using random selection (Latin Hypercube) with replacement?

Print this item

  code injector (scapy), replace does not work
Posted by: iago - Jun-27-2020, 03:05 PM - Forum: Web Scraping & Web Development - No Replies

Hello, I try to inject JS-Code into a (server) response package.
I can show the response packages with:

print(scapy_packet.show())
..... More

Print this item

  Class takes no arguments
Posted by: Nazartfya - Jun-27-2020, 12:36 PM - Forum: General Coding Help - Replies (2)

Hello guys, I'm learning Python and there is a small problem in writing code for one game. I've created a Ball class with some attributes. And then, w..... More

Print this item

  Finding line numbers starting with certain string
Posted by: Sutsro - Jun-27-2020, 12:11 PM - Forum: General Coding Help - Replies (3)

Hi people,

I am trying to get line numbers depending if the line starts with "T.C." however list is empty and printing the number list gives me not..... More

Print this item

  simple task with lists...
Posted by: Maxwell123 - Jun-27-2020, 11:12 AM - Forum: Homework - Replies (3)

Write the function equal(lst1, lst2), which for two given integer lists will give the result True if these lists are equal after compression and False..... More

Print this item

  Recursive functions
Posted by: Ayman_2001 - Jun-27-2020, 10:37 AM - Forum: Homework - Replies (3)

Greetings,
I've been doing this course on Udacity and this one problem has been stressing me for a while and I don't know why this keeps coming back ..... More

Print this item

  Problem in matrix
Posted by: leemao - Jun-27-2020, 10:08 AM - Forum: General Coding Help - Replies (1)

Hello

The code below works fine with the matrix in comment, however I want to use the matrix of the generated graph G instead of set it manually. I..... More

Print this item

  How to merge strings through graphs
Posted by: Den - Jun-27-2020, 09:19 AM - Forum: General Coding Help - Replies (6)

Having a list of strings and knowing that all of them have to be merged as they have a common prefix or suffix
for a simple example, having
..... More

Print this item

  scraping multiple pages from table
Posted by: bandar - Jun-27-2020, 06:27 AM - Forum: Web Scraping & Web Development - Replies (1)

Hello,

I really want to know how I can scrap data from table in website with multiple pages, I know it is simple if it is straight forward in the w..... More

Print this item

  PyOCR cannot detect clearly?
Posted by: wood_6636 - Jun-27-2020, 04:57 AM - Forum: General Coding Help - No Replies

As you can see in the down below captures, the image cannot be nicely detected to the final result, could anyone tell me how to have a better recognit..... More

Print this item

  How to left align logging messages
Posted by: Mekala - Jun-27-2020, 03:57 AM - Forum: General Coding Help - Replies (3)

Hi,
I use the below code, and I want the messages to be left-aligned, meaning I want to align the columns.

[python]import logging
from datetime i..... More

Print this item

  Why this code not getting desired output ?
Posted by: MDRI - Jun-27-2020, 02:36 AM - Forum: General Coding Help - Replies (2)

Thanks for your response to my threads.

I am trying to use the pyhton code below. I am getting weird output.

Python Code

[python]def Process_..... More

Print this item

  “While” Loop Problems
Posted by: Ryan_teresi - Jun-27-2020, 01:56 AM - Forum: General Coding Help - Replies (3)

When I do this loop it just keeps repeating same number infinitely
Pls help
https://ibb.co/Snnk04w (I couldn’t get imgur to work her here is that..... More

Print this item

  Python for excel
Posted by: BuJayBelvin - Jun-27-2020, 12:40 AM - Forum: General Coding Help - Replies (7)

Can anyone share a reference text specifically geared towards excel users? Not sure it exists. (I have read the openpyxl documentation.)

Thanks!

Print this item

  handling 2 exceptions at once
Posted by: Skaperen - Jun-26-2020, 11:01 PM - Forum: General Coding Help - Replies (2)

i have mishandling of a case of 2 exceptions at the same time. if each happens one at a time, they are handled OK. but if a second exception happens..... More

Print this item

  Use a button in Tkinter to run a Python function
Posted by: Pedroski55 - Jun-26-2020, 10:10 PM - Forum: General Coding Help - Replies (4)

I use Python functions to create html. I made a module, cunningly called 'makeHTML.py' I import this module in justMakewebpage.py I have refined this ..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to put my game loop i... 2 hours ago temlotresid6 Santoro Game Developm...
  My goal to be hired worki... 3 hours ago GnomeSweetGnome mamta25 News and Disc...
  [SOLVED] [BeautifulSoup] ... Yesterday, 14:10 Winfried Winfried Web Scraping ...
  How to Implement Real-Tim... Yesterday, 06:48 ankitsharma32 ankitsharma32 Web Scraping ...
  Help with running PvZ Fus... Yesterday, 04:46 Barber532 SledgeNE Game Developm...
  Graph Interpolate Difficu... 11-19, 20:34 Tuurbo46 deanhystad General Codin...
  link variable to exc bloc... 11-19, 05:03 Astrobert Gribouillis General Codin...
  PyQt6 QWidgets and system... 11-18, 18:47 stevecoh1 Axel_Erfurt GUI
  best way to learn python 11-18, 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
Most views
  The best Prog... 579188
  Tutorial Requ... 511914
  Web Scraping ... 442140
  Newbie with P... 386222
  New Users Int... 379136
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+ 12109
buran 8196
snippsat 7389
deanhystad 6915
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
ndx101 Today
Santoro Today
OtiliaBecker Today
NAGASOWMYAGUNDU Yesterday
shipa1autotransport Yesterday

User Panel Messages

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