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,547

Full Statistics

Online Users
There are currently 40 online users.
» 0 Member(s) | 30 Guest(s)
Google, Applebot, Bing, AOL, Twitter, AOL

Latest Threads
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: noisefloor
2 hours ago
» Replies: 4
» Views: 109
My goal to be hired worki...
Forum: News and Discussions
Last Post: Larz60+
Yesterday, 11:58 PM
» Replies: 1
» Views: 491
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 06:49 PM
» Replies: 4
» Views: 2,031
My First App
Forum: Code Review
Last Post: carlbidwell
Yesterday, 10:53 AM
» Replies: 8
» Views: 8,590
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 03:54 AM
» Replies: 3
» Views: 490
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 955
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 972
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,243
Regarding pdf for PCEP an...
Forum: News and Discussions
Last Post: Biks
Sep-26-2025, 09:50 AM
» Replies: 1
» Views: 1,853
Using Python to SSH and R...
Forum: Networking
Last Post: SprunkiRetake
Sep-26-2025, 03:53 AM
» Replies: 1
» Views: 2,892

 
  Sublime Text + Anaconda not indenting Python code correctly
Posted by: Maxximiliann - Jun-13-2020, 06:09 PM - Forum: General Coding Help - No Replies

Running:

Sublime Text 3.2.2
Python 3.8.2

Anaconda's autoformat feature reindents the code below as follows:


[python]
coun..... More

Print this item

  Stopping a loop in another file
Posted by: catosp - Jun-13-2020, 06:04 PM - Forum: General Coding Help - Replies (4)

Hello

File1.py:
[python]
import File2

while True:
a = input()
if a == "start":
threading.Thread(target = File2.func()).start()
i..... More

Print this item

  Print gives none
Posted by: mariolucas75 - Jun-13-2020, 05:52 PM - Forum: General Coding Help - Replies (1)

Dear forum,

Could you pls advise why this code gives none

list=["a","b"]
print(list.append(list[1]))
And the following ..... More

Print this item

  struct.unpack failed
Posted by: Roro - Jun-13-2020, 04:24 PM - Forum: General Coding Help - Replies (2)

Hello,

I am biginning coding with python and I have 2 errors I could not solve alone :

I have imported files (like MNIST\\train-images-idx3-ubyt..... More

Print this item

  [split] Kera Getting errors when following code example Image classification from scratch
Posted by: hobbyist - Jun-13-2020, 04:11 PM - Forum: General Coding Help - Replies (3)

From here:

https://keras.io/examples/vision/image_classification_from_scr[url=https://python-forum.io/thread-27613.html]..... More

Print this item

  [split] can you explain me about addition of keypress to move the turtle..?
Posted by: berto_simarmata - Jun-13-2020, 03:22 PM - Forum: Game Development - Replies (1)

[python]# Keyboard Binding
wn.listen()
wn.onkeypress(paddle_a_up,"w")
wn.onkeypress(paddle_a_down,"s")
wn.onkeypress(paddle_a_left,"a")
wn.onkeyp..... More

Print this item

  [ MATRIX - COOL - CALCULATOR ] Try it and let me know , how it's work ?
Posted by: Matrix - Jun-13-2020, 02:53 PM - Forum: Code sharing - Replies (3)

[python]

#------------------------------------------------------------
# Trying again { After last script deleted by mistake } |
# ..... More

Print this item

  Name Error: name 'Stockton' is not defined
Posted by: Pinokchu - Jun-13-2020, 02:26 PM - Forum: General Coding Help - Replies (3)

[code]data = DataPortal(model=m)

data.load(filename="Dataframe2.xlsx", range='D2:D6', set='I')
data.load(filename="Dataframe2.xlsx", range='A2..... More

Print this item

  removing dictionary element in list using (key, value)
Posted by: MelonMusk - Jun-13-2020, 01:50 PM - Forum: General Coding Help - Replies (3)

[python]
# list of dictionary
students = [{'id': '001', 'name': 'John'},
{'id': '100', 'name': 'Park'},
{'id': '010', 'nam..... More

Print this item

  Accurate Clicks Per Second
Posted by: JudyLarose - Jun-13-2020, 01:48 PM - Forum: Game Development - Replies (8)

Hiya guys. It's been a while and this place has changed a bit. Well, I'm working on a clicker-style game and I need an accurate way to calculate click..... More

Print this item

  visual studio code python how to get source code of import module definitian
Posted by: umen - Jun-13-2020, 12:21 PM - Forum: News and Discussions - Replies (2)

im debugging python source code using windows WSL some modules that i import i can see the source and some i can't , why i can't ?

here i try to fi..... More

Print this item

  Help with multiprocessing
Posted by: palladium - Jun-13-2020, 11:55 AM - Forum: General Coding Help - Replies (2)

Hi all

I am trying to learn the concurrent.futures module to (hopefully) speed up my code with multiprocessing and/or multithreading. The sequentia..... More

Print this item

  With Selenium create a google Search list in Incognito mode withe specific location,
Posted by: tsurubaso - Jun-13-2020, 10:50 AM - Forum: Web Scraping & Web Development - Replies (3)

Hello to all

a bit of Context:

I have to do a deadly repetitive task for a colleague that begging Monday.
Make a list of Search results..... More

Print this item

  ValueError: invalid literal for int() with base 10: '2 5'
Posted by: Bhavika - Jun-13-2020, 08:30 AM - Forum: Homework - Replies (3)

In hackerrank, i got a question named average function.
i gave my code like this
[python]
def avg(nums):
mean = (a + b) / 2
return format..... More

Print this item

  Constraints in for loop
Posted by: Emekadavid - Jun-13-2020, 06:23 AM - Forum: Homework - Replies (2)

I am doing a challenge in hackerrank and was given this stub code:
[python]for _ in range(int(input))
name = input()
score = float(input()..... More

Print this item

  np array tolist and back
Posted by: anthares - Jun-13-2020, 06:17 AM - Forum: General Coding Help - Replies (2)

Hi everyone,

I am pretty new to Python and I am seeking some help and guidance.

I use OpenCV to grab frames from video cap:

[python]ret, fra..... More

Print this item

  Using pyaudio to stop recording under certain sound threshold
Posted by: Twanski94 - Jun-13-2020, 01:16 AM - Forum: General Coding Help - Replies (2)

Heads up, this is my first real programming project, but I'm really dedicated to making it work and would love some input.

I've written a program t..... More

Print this item

  No response from socket
Posted by: kauerbach - Jun-13-2020, 12:50 AM - Forum: General Coding Help - Replies (1)

Greetings,

The script below works well for one of my embedded sensing systems:

[python]
import socket

TCP_IP = 'X.X.X.X'
TCP_PORT = MY_PORT..... More

Print this item

  Kera how to load a dataset of images stored to my computer, not the Cifar-10?
Posted by: hobbyist - Jun-12-2020, 08:41 PM - Forum: General Coding Help - Replies (5)

Because I am searching but I cannot figure out how to make it work. Is there any way to load an image dataset stored in my PC ('png') so that i..... More

Print this item

  Absolutely new to python - basic advise needed
Posted by: mariolucas75 - Jun-12-2020, 08:15 PM - Forum: General Coding Help - Replies (2)

Dear community,

I am absolutely new to Python but like to learn it.
Could you pls help to understand following code ( I dont understand the bold p..... More

Print this item

  a better way of writing code
Posted by: Than999 - Jun-12-2020, 06:22 PM - Forum: General Coding Help - Replies (6)

Hi is there a better way of writing this code instead of writing the repetitive multiple if statements? I'm trying to find a better way of writing th..... More

Print this item

  Unable to combine print statements in for loop
Posted by: adeana - Jun-12-2020, 04:49 PM - Forum: General Coding Help - Replies (2)

I am learning Python on my own. I am using Python Crash Course by Eric Matthes. Chapter 4: Looping through a Slice -

[python]#my list
players = [..... More

Print this item

  GPL and PyQT5 license
Posted by: Kael90 - Jun-12-2020, 04:48 PM - Forum: News and Discussions - Replies (2)

Im a bit confused after reading the license stuff. especially when you want to do it commercial.

Can someone explain it a bit more detailed? Especi..... More

Print this item

  Allow to Login if there is no IP Address
Posted by: venkat1425 - Jun-12-2020, 02:40 PM - Forum: General Coding Help - Replies (1)

I Am new to Phyton coding, and i have question like, user will allow to login if there is no IP address found.

please find below and let me know is..... More

Print this item

  Loop through elements of list and include as value in the dictionary
Posted by: Rupini - Jun-12-2020, 10:20 AM - Forum: Homework - Replies (3)

Hi,

I have a nested dictionary output from aws service from which I need to extract the cluster name and it's corresponding ID. I am storing cluste..... More

Print this item

  Get Value from List to Show in DataFrame Column
Posted by: ahmedwaqas92 - Jun-12-2020, 09:00 AM - Forum: General Coding Help - Replies (1)

I have a dataframe with a little more than 15000 rows. I also have three lists (c_iddf, p_iddf, cr_iddf) that I converted from a .csv file, so all the..... More

Print this item

  TypeError: file must have 'read' and 'readline' attributes
Posted by: hobbyist - Jun-12-2020, 08:23 AM - Forum: General Coding Help - Replies (6)

I am trying to make the below code work since morning. I have read tutorials on google about python, I have done 0 progress. Can you help me with this..... More

Print this item

  check pandas variable type
Posted by: cools0607 - Jun-12-2020, 07:47 AM - Forum: General Coding Help - Replies (3)

I am trying to check variable's data type is list or dataframe.
When I got type(df_c) is[color=#C0392B] Out[155]: pandas.core..... More

Print this item

  Sort methods
Posted by: rs74 - Jun-12-2020, 07:26 AM - Forum: General Coding Help - Replies (5)

a = add(multi(3));

a = a + mod(div(a + 3)) + sub(12)



How (and why) should this functions (add, multi, mod, div, sub) be so..... More

Print this item

  PyCharm - 'unable to save settings'
Posted by: Taguero - Jun-12-2020, 07:22 AM - Forum: General Coding Help - Replies (1)

Hey, guys! Hope you'll help me fix the problem.

When I once again ran PyCharm 2020.1.1 as I always do, it said that it didn't find any interpreter. ..... More

Print this item

  How to put the items of one list in new generated lists
Posted by: Bobbear - Jun-12-2020, 06:04 AM - Forum: General Coding Help - Replies (1)

Hello.

I would like to know if it is possible to create for example 100 lists automatically,
so that I can use list1, list2, list3, ... list100
..... More

Print this item

  object with ever possible attribute
Posted by: Skaperen - Jun-12-2020, 04:57 AM - Forum: News and Discussions - Replies (3)

i'd like to make an object that no matter what attribute name is requested (other than standard ones) a single specific value is given. one way this ..... More

Print this item

  Multiple excel files
Posted by: Kristenl2784 - Jun-12-2020, 03:45 AM - Forum: General Coding Help - Replies (6)

Hello,

I am so new at using python that I don’t know how to start the code.

I have 26 excel files (file1, file2, file3, etc) and I want to crea..... More

Print this item

  IMAPLib Has No Attribute IMAP4_SSL. Help!
Posted by: bmccollum - Jun-12-2020, 03:20 AM - Forum: General Coding Help - Replies (3)

I've written a Python script that checks an email address on an Exchange server once per minute to check for new emails, download those emails as indi..... More

Print this item

  Problem applying conditions against results back from a database
Posted by: card51shor - Jun-12-2020, 12:41 AM - Forum: Homework - Replies (31)

Hey guys I'm trying to compare user input with what's in the database to see if they can login or not.

I'm getting a list back from the input and ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Comparing 2 100GB Drives/... 2 hours ago tester_V noisefloor General Codin...
  My goal to be hired worki... Yesterday, 23:58 GnomeSweetGnome Larz60+ News and Disc...
  what does % stand for in ... Yesterday, 18:49 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... 577204
  Tutorial Requ... 500226
  Web Scraping ... 440902
  Newbie with P... 384918
  New Users Int... 369205
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 7368
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