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,424
» Latest member: tomtyiu
» Forum threads: 38,831
» Forum posts: 176,079

Full Statistics

Online Users
There are currently 38 online users.
» 1 Member(s) | 28 Guest(s)
Bing, Google, Facebook, Applebot, AOL, tomtyiu

Latest Threads
we open-sources faster py...
Forum: Code sharing
Last Post: tomtyiu
1 minute ago
» Replies: 0
» Views: 1
Ко ланта
Forum: General Coding Help
Last Post: RaymondNaw
54 minutes ago
» Replies: 0
» Views: 11
Life advice
Forum: Bar
Last Post: Josephbar
3 hours ago
» Replies: 3
» Views: 3,582
Exponential Number Conver...
Forum: General Coding Help
Last Post: Jessicaadams
9 hours ago
» Replies: 5
» Views: 501
If I open a file write or...
Forum: General Coding Help
Last Post: bowlofred
Yesterday, 03:21 AM
» Replies: 5
» Views: 153
a function to watch files
Forum: News and Discussions
Last Post: Skaperen
Jan-11-2026, 05:21 AM
» Replies: 3
» Views: 757
python re.finditer return...
Forum: General Coding Help
Last Post: Pedroski55
Jan-11-2026, 02:57 AM
» Replies: 8
» Views: 549
Possible bug found, pleas...
Forum: General Coding Help
Last Post: alexajames
Jan-08-2026, 04:31 PM
» Replies: 14
» Views: 841
How to put my game loop i...
Forum: Game Development
Last Post: MarkHenry
Jan-08-2026, 12:47 PM
» Replies: 12
» Views: 7,794
Code failing to ask input...
Forum: Homework
Last Post: perfringo
Jan-08-2026, 06:35 AM
» Replies: 4
» Views: 749

 
  Only getting last record saved...Why
Posted by: Milfredo - Sep-09-2020, 03:20 AM - Forum: General Coding Help - Replies (10)

The following code works. It writes to disk all 17 files I an trying to write to file. Problem is, only the last record in each file is being saved. I..... More

Print this item

  adb commands
Posted by: Nickd12 - Sep-09-2020, 02:51 AM - Forum: General Coding Help - Replies (11)

So I'm trying to run adb commands in python on Macbook I'm basically trying to run amazons fireTv commands. I can run the commands in my Mac terminal ..... More

Print this item

  cumulating results
Posted by: awasnipi - Sep-09-2020, 02:27 AM - Forum: General Coding Help - Replies (6)

I am a complete novice programing, and just started laerning python.
how can i cumulate points in the below program:

[python]
import time
import..... More

Print this item

  Weird refresh rate with i2c lcd
Posted by: JarredAwesome - Sep-09-2020, 02:26 AM - Forum: Game Development - Replies (9)

Hey everyone,

I am working on a program that gives me the values from different sensors.
On its own, the i2c screen seems to work fine, but when I..... More

Print this item

  Explanation of the left side of this statement please
Posted by: rascalsailor - Sep-08-2020, 06:42 PM - Forum: General Coding Help - Replies (3)

The statement below is from here
I understand that it is s..... More

Print this item

  Building command in a looping construct
Posted by: DennisT - Sep-08-2020, 05:15 PM - Forum: General Coding Help - Replies (3)

Hi,
I'm trying to build commands in a loop. However it isn't working. Here's what I have coded:

[python]
for PtrI in range(1,16):
..... More

Print this item

  Need help with api structure and logging. (uvicorn and fastapi)
Posted by: KaranTrivedi - Sep-08-2020, 02:12 PM - Forum: General Coding Help - No Replies

Hey,

Here is my project.

https://github.com/KaranTrivedi/dirlist-api

I tried a few different things. I would like to create an access log fil..... More

Print this item

  How to merge three DataFrames based on specific column
Posted by: Mekala - Sep-08-2020, 02:01 PM - Forum: General Coding Help - No Replies

Hi,
I have three Data Frames with a common column (ID) and I want to merge them into one.


df1:

[python]ID Pop RANK
A1 T1 1
A1 T1 3
B1 T1 4..... More

Print this item

  Beginner having Syntax Error problem
Posted by: RyanHo - Sep-08-2020, 12:50 PM - Forum: General Coding Help - Replies (3)

Hello guys I am new to Python and I have overcome a problem.Can anybody help?
I am trying to make a simple calculator. Big Grin Big Grin

..... More

Print this item

  error "IndentationError: expected an indented block"
Posted by: axa - Sep-08-2020, 10:10 AM - Forum: General Coding Help - Replies (4)

Hi
Can you help me to correct the following code so that I do not get IndentationError error?

my script:

[python]from scapy.all import *
DIR=o..... More

Print this item

  Check if a file exists.
Posted by: Pedroski55 - Sep-08-2020, 05:58 AM - Forum: General Coding Help - Replies (5)

I need to look for a file in this path:

Quote:pathToAnswersHW = '/home/pedro/' + termName[0] + '/' + theClass[0] + '/correctAnswersHW/'
..... More

Print this item

  Simple game help
Posted by: jarettday - Sep-07-2020, 09:43 PM - Forum: Game Development - Replies (1)

I'm trying to make a simple game in python.
[python]
import pygame
from pygame.locals import *

pygame.init()
width, height = 640, 480
screen=p..... More

Print this item

  Recursive function returns None, when True is expected
Posted by: akar - Sep-07-2020, 07:58 PM - Forum: General Coding Help - No Replies

Hi,
I'm learning Python, I guess this must be absolutely silly but it's been driving me mad for hours.

I've simplified a lot from the original pro..... More

Print this item

  Cannot get to virtual environment in Jupyter IDE
Posted by: ErnestTBass - Sep-07-2020, 06:43 PM - Forum: General Coding Help - Replies (6)

I am trying to use fbprophet in jupyter notebook in a program for making predictions.

To use it requires python=3.61 which means that I must make a..... More


Attached Files

Thumbnail(s)
                   
Print this item

  Click after 10 Mins
Posted by: biprabu - Sep-07-2020, 05:27 PM - Forum: General Coding Help - Replies (1)

Hi All,

I am using pyatuogui module for automation.
i have to hit enter key after 10 mins

pyautogui.press('down')
pyautogui.press('enter')
p..... More

Print this item

  Beginner: I need help understanding few lines of a code.
Posted by: hop_090 - Sep-07-2020, 03:13 PM - Forum: General Coding Help - Replies (1)

[python]
num=int(input('Enter the looping number: '))
for i in range(num):
for j in range(i):
print(i, end=' ')
print(" ")
[/pyt..... More

Print this item

  print either int or float - How?
Posted by: Denial - Sep-07-2020, 02:51 PM - Forum: General Coding Help - Replies (1)

Hello

I want to print number as whole if there is no decimal point and if there is decimal point, then print with decimal point.

For example,
..... More

Print this item

  how to encode and decode same value
Posted by: absolut - Sep-07-2020, 01:50 PM - Forum: General Coding Help - Replies (2)

Hi.
I obtain these data:
ADhlamtsOXdreXE2eAA0VFpWTGJBWDdSZW83d3AwYnJnNlVnSEpRcTlvR0wwMTlldUhSelJ6bXRtTTRnbmUxU
I'm tring to decode and then encode ..... More

Print this item

  setupUi To QuiLoad convert
Posted by: Harshil - Sep-07-2020, 01:39 PM - Forum: GUI - No Replies

Hey! Friends I Have Made A Code A That Looks Nice But Problem Is I Want to Make It setupUi To QuiLoad()
Note: I AM Using PYSIDE2
[python]impo..... More

Print this item

  [split] Помощь по приватным ключам/Private key help
Posted by: sairam17519 - Sep-07-2020, 12:55 PM - Forum: General Coding Help - No Replies

When I run the above program I am getting following error. Please help me.
[error]
Traceback (most recent call last):
File "C:\Users\SAIRAM\Deskt..... More

Print this item

  Can anyone help me there? I have this due tomorrow and I'm stuck with no one to talk
Posted by: rarefaction - Sep-07-2020, 12:42 PM - Forum: Homework - Replies (1)

[python]
import random
import dice
import array

print(
'''
Petals Around the Rose
----------------------

The name of the game is 'Petals A..... More

Print this item

  Three scripts to one
Posted by: sa7bnb - Sep-07-2020, 11:03 AM - Forum: General Coding Help - No Replies

[font=Arial, Helvetica, sans-serif]Hello,
Would need help combining three python scripts into one.

The function I am looking for is the following,..... More

Print this item

  Python Requests
Posted by: Aussie - Sep-07-2020, 10:46 AM - Forum: General Coding Help - Replies (2)

Hi,
I have started looking at requests in Python.
It must be possible to add both an ssl and authentication right?
If correct, how.

Also, you ca..... More

Print this item

  My first code
Posted by: Dule74 - Sep-07-2020, 09:21 AM - Forum: Code sharing - Replies (3)

I recently started trying to learn Python and yesterday I wrote this.
[python]
name = input("What is your name? ")
print(name + " is such a beautif..... More

Print this item

  Printing string at specific position on terminal - not showing
Posted by: __Mathieu__ - Sep-07-2020, 09:16 AM - Forum: General Coding Help - Replies (1)

Hello,

I am studying Python and currently working on matrix.
I want to print an empty matrix and pointing the position of each matrix element by a..... More

Print this item

  Uploading files to NAS from Raspberry PI using python
Posted by: zazas321 - Sep-07-2020, 09:00 AM - Forum: General Coding Help - No Replies

Hello. We have NAS drive connected to our network.IT administrator allocated me 4GB of space for testing and I have been given ID,password, and the IP..... More

Print this item

  Activate Winodw/ Set focus
Posted by: biprabu - Sep-07-2020, 04:05 AM - Forum: General Coding Help - No Replies

Hi ALL,


Please help me to activate the window so that i will move the mouse to particular are and click

my Code
[python]
Import subprocess
..... More

Print this item

  Pass by object reference when does it behave like pass by value or reference?
Posted by: mczarnek - Sep-06-2020, 07:49 PM - Forum: General Coding Help - Replies (2)

I've read a lot and sort of get it, though it hasn't clicked yet.. could you explain pass by object reference like this:
In what situations does Pyt..... More

Print this item

  Help accessing elements of list of dictionaries
Posted by: Milfredo - Sep-06-2020, 07:41 PM - Forum: General Coding Help - Replies (6)

I have filled a list with dictionaries in the following code. I have watched at least 5 videos looking for the answer. How can I access elements of in..... More

Print this item

  Merging Excel Files
Posted by: JezMim - Sep-06-2020, 07:14 PM - Forum: General Coding Help - Replies (1)

We are new to Python script and need to merge 50+ excel files into one workbook. Have searched for suitable code and have edited to suit our data & f..... More

Print this item

  My while loop won't loop
Posted by: JHem - Sep-06-2020, 05:53 PM - Forum: Homework - Replies (6)

Hello! I'm new to python and I'm trying to solve a homework exercise that covers while-loops but the problem is that my while loop won't loop... **hu..... More

Print this item

  Importing Program Wide
Posted by: JarredAwesome - Sep-06-2020, 05:41 PM - Forum: General Coding Help - Replies (4)

Hey everyone,


I’m new to python for, but I have done a lot of php programming.

One feature I liked in php was include. I know Python has impor..... More

Print this item

  New User online Guide
Posted by: NAP1947 - Sep-06-2020, 03:41 PM - Forum: General Coding Help - Replies (1)

I am very new and just downloaded Python on Windows 10 and would like to follow the Beginners guide included in the site.
Can this be downloaded as a..... More

Print this item

  Changing Download Path for ChromeOptions
Posted by: Zelatrix - Sep-06-2020, 03:13 PM - Forum: Web Scraping & Web Development - No Replies

I am attempting to write a Python script which logs into a site using Selenium, and thendownloads the images from a set of links passed into the scrip..... More

Print this item

  Open for Python project(s)
Posted by: Python_User - Sep-06-2020, 03:02 PM - Forum: General Coding Help - Replies (8)

Dear all,

Hopefully this is the right place to discuss this topic.

I started learning Python at the end of July and feel nowadays step by step m..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  we open-sources faster py... 1 minute ago tomtyiu tomtyiu Code sharing
  Ко ланта 54 minutes ago RaymondNaw RaymondNaw General Codin...
  Life advice 3 hours ago jamesaarr Josephbar Bar
  Exponential Number Conver... 9 hours ago Tuurbo46 Jessicaadams General Codin...
  If I open a file write or... Yesterday, 03:21 Pedroski55 bowlofred General Codin...
  a function to watch files 01-11, 05:21 Skaperen Skaperen News and Disc...
  python re.finditer return... 01-11, 02:57 arbiel Pedroski55 General Codin...
  Possible bug found, pleas... 01-08, 16:31 Hassher alexajames General Codin...
  How to put my game loop i... 01-08, 12:47 temlotresid6 MarkHenry Game Developm...
  Code failing to ask input... 01-08, 06:35 Phoenix_Narukami perfringo Homework
  sorting a lisr of file pa... 01-07, 07:13 Skaperen OtiliaGen News and Disc...
Most views
  The best Prog... 580766
  Tutorial Requ... 522437
  Web Scraping ... 442925
  New Users Int... 388247
  Newbie with P... 387149
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+ 12117
buran 8197
snippsat 7399
deanhystad 6921
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
tomtyiu Today
RaymondNaw Yesterday
Josephbar Yesterday
zaasheytop3010 Yesterday
Avigma Yesterday

User Panel Messages

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