Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 18,597
» Latest member: ganeshbraj
» Forum threads: 37,369
» Forum posts: 169,822

Full Statistics

Online Users
There are currently 394 online users.
» 0 Member(s) | 387 Guest(s)
Bing, Yandex, Google, Baidu, Apple, Facebook

Latest Threads
Help with writing monitor...
Forum: General Coding Help
Last Post: deanhystad
58 minutes ago
» Replies: 3
» Views: 150
Cloud computing advice ne...
Forum: Data Science
Last Post: sawtooth500
1 hour ago
» Replies: 3
» Views: 123
MemoryError in pywinauto....
Forum: General Coding Help
Last Post: itegumo
6 hours ago
» Replies: 1
» Views: 236
Adding a sub menu to a tt...
Forum: GUI
Last Post: deanhystad
10 hours ago
» Replies: 5
» Views: 189
measure diameter of compl...
Forum: General Coding Help
Last Post: alminnawi
Today, 10:20 AM
» Replies: 0
» Views: 85
How to Randomly Print a Q...
Forum: General Coding Help
Last Post: Bronjer
Today, 07:07 AM
» Replies: 13
» Views: 632
Dynamically plotting grap...
Forum: Data Science
Last Post: deanhystad
Yesterday, 04:09 PM
» Replies: 11
» Views: 247
i have not decided which ...
Forum: GUI
Last Post: CaseySullivan
Yesterday, 12:43 PM
» Replies: 3
» Views: 278
Number stored as text wit...
Forum: General Coding Help
Last Post: CAD79
Yesterday, 10:17 AM
» Replies: 2
» Views: 347
Python Jira Connectivity
Forum: General Coding Help
Last Post: Abhishikt
Yesterday, 08:55 AM
» Replies: 1
» Views: 249

 
  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

  bool b = (num == 100) this doesn't work?
Posted by: MelonMusk - Jun-11-2020, 11:57 PM - Forum: General Coding Help - Replies (2)

bool b = num == 100
why this doesn't work?

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Help with writing monitor... 58 minutes ago donottrackmymetadata deanhystad General Codin...
  Cloud computing advice ne... 1 hour ago sawtooth500 sawtooth500 Data Science
  MemoryError in pywinauto.... 6 hours ago ktw3857 itegumo General Codin...
  Adding a sub menu to a tt... 10 hours ago Robo deanhystad GUI
  measure diameter of compl... Today, 10:20 alminnawi alminnawi General Codin...
  How to Randomly Print a Q... Today, 07:07 BillKochman Bronjer General Codin...
  Dynamically plotting grap... Yesterday, 16:09 CAD79 deanhystad Data Science
  i have not decided which ... Yesterday, 12:43 Skaperen CaseySullivan GUI
  Number stored as text wit... Yesterday, 10:17 CAD79 CAD79 General Codin...
  Python Jira Connectivity Yesterday, 08:55 Shyam Abhishikt General Codin...
  Low code b2b e-commerce s... Yesterday, 08:54 makc Abhishikt Web Scraping ...
Most views
  The best Prog... 398502
  Web Scraping ... 290770
  Tutorial Requ... 284129
  Newbie with P... 243837
  New Users Int... 228700
Most reputation
buran 582
snippsat 499
Larz60+ 452
Gribouillis 330
deanhystad 312
Most replies
  New Users Int... 431
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11870
buran 8088
snippsat 7080
deanhystad 6196
metulburr 5150
Top referrers
Googlepro 20
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
ganeshbraj Today
Jaime Today
itegumo Today
wonderfulunix Today
alminnawi Today

User Panel Messages

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