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,988
» Latest member: markwood955
» Forum threads: 38,736
» Forum posts: 175,578

Full Statistics

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

Latest Threads
Weird failure in Selenium
Forum: General Coding Help
Last Post: glestwid
5 hours ago
» Replies: 0
» Views: 34
print does not open conso...
Forum: General Coding Help
Last Post: Axel_Erfurt
7 hours ago
» Replies: 1
» Views: 57
Fred Economic Data API
Forum: Web Scraping & Web Development
Last Post: Trickety
11 hours ago
» Replies: 3
» Views: 2,526
create ocr to detect lice...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:58 PM
» Replies: 2
» Views: 86
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:56 PM
» Replies: 6
» Views: 187
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Oct-01-2025, 03:05 AM
» Replies: 4
» Views: 2,045
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 457
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Sep-30-2025, 12:21 AM
» Replies: 2
» Views: 1,088
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,162
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 842

 
  Need help with isdigit() and isalpha() function
Posted by: Gateux - Jul-22-2019, 11:46 AM - Forum: Homework - Replies (2)

I need to write a program that has these conditions:
- Length must be exactly 9
- The first letter must be S, T, F or G
- Must consist of 7 digits..... More

Print this item

  How to return value from a stored procedure of a MySQL database?
Posted by: UtiliseIT - Jul-22-2019, 10:14 AM - Forum: General Coding Help - No Replies

Hi,

I am working with a MySQL database and am having trouble with the line(s) of code that returns values when using a stored procedure that will r..... More

Print this item

  When dividing elements of matrix i would like the result 0 instead of inf?
Posted by: Koczkodan - Jul-22-2019, 08:14 AM - Forum: Data Science - Replies (4)

Hi,

While dividing element from first matrix by second matrix value 0 I need result to be 0 instead of inf.

example:
1 1
2 6

divided by
..... More

Print this item

  Confusion in exact term used for ?
Posted by: ift38375 - Jul-22-2019, 07:54 AM - Forum: General Coding Help - Replies (2)

[python]
import pandas as pd
diSales= { 2016:{'qtr1':34500,'qtr2':56000,'qtr3':47000,'qtr4':49000},
2017:{'qtr1':44900,'qtr2':46100,'qtr..... More

Print this item

  Must rerun to show data
Posted by: evrintobing - Jul-22-2019, 05:49 AM - Forum: Web Scraping & Web Development - No Replies

Hey guy's. I want to ask. I use pycharm as my python IDE and i build api using flask. My project connect to database when i run my project and i use p..... More

Print this item

  how to add class instance attributes from list
Posted by: 999masks - Jul-22-2019, 05:44 AM - Forum: General Coding Help - Replies (2)

hi everyone,
My questions is follows
lets say i have
[python]
class BaseClass:
def __init__(self, atr_1=None, atr_2=None, atr_3=None):
..... More

Print this item

  [split] Python beginner: Weird Syntax Error
Posted by: mnsaathvika - Jul-22-2019, 03:37 AM - Forum: General Coding Help - Replies (1)

İmage


Im also facing the same issue at 3.4.0 at "4".
Please help me...

Print this item

  Best way of taking a date prefix from a line and forming a file path from it?
Posted by: Skaperen - Jul-22-2019, 03:13 AM - Forum: General Coding Help - Replies (5)

i'm getting a string that begins with "YYYY-mm-dd HH:MM:SS". i need to get "YYYY-mm/dd/HH" from the string (to be the file name to write the string i..... More

Print this item

  I am having a problem with my Slider
Posted by: Hadad - Jul-22-2019, 02:12 AM - Forum: Web Scraping & Web Development - Replies (5)

I am trying to control the frequency sampling rate of my dial_tone python code through a Flask webserver. The audio output still works but when I drag..... More

Print this item

  AWS Buckets and Boto ... Oh NO
Posted by: Larz60+ - Jul-21-2019, 11:31 PM - Forum: News and Discussions - No Replies

I have avoided AWS up until Today, but need to access some files that are stored on AWS.
I downloaded boto3 so I could access these.
Upon looking at..... More

Print this item

  How can i use max_instances in apscheduler
Posted by: zebisnaga - Jul-21-2019, 11:17 PM - Forum: General Coding Help - No Replies

Hi, guys
I am working with 3 scripts. The first one does a request, save the data from the request and write in a csv file.
The second one is a flas..... More

Print this item

  AWS_Utils Library
Posted by: macnisin - Jul-21-2019, 10:42 PM - Forum: General Coding Help - Replies (1)

I am trying to use the AWS Utils library and can't get past the import process. I have installed the aws_utils library and when I run pip list it show..... More

Print this item

  Having problems using 'or' in a 'if' statement?
Posted by: umut3806 - Jul-21-2019, 10:27 PM - Forum: General Coding Help - Replies (2)

number1 = 5
number2 = 10

if number1 or number2 == 6:
    print("Successful !")
else:
    print("Failed !")
My problem is th..... More

Print this item

  Send raw string via socket with out any changes
Posted by: john36 - Jul-21-2019, 08:00 PM - Forum: Networking - Replies (18)

Hi,
I have problem with sending raw string data via socket. I made communication between PC(python script) and labeler Markem Imaje. Labeler has RS23..... More

Print this item

  Converting XML
Posted by: constantin01 - Jul-21-2019, 07:14 PM - Forum: Data Science - Replies (4)

Hi

There is xml-file (350 mb) that is a dictionary of tagged russian words. I want use it to tag words but problem is that search in xml-file is ve..... More

Print this item

  tkinter - "NameError: name 'frame' is not defined"
Posted by: Mocap - Jul-21-2019, 06:25 PM - Forum: General Coding Help - Replies (3)

I'm trying to create a class of buttons and bind it to tkinter but it keeps telling me "NameError: name 'frame' is not defined."

I tried this solu..... More

Print this item

  List capital letters
Posted by: ricardodepaula - Jul-21-2019, 05:09 PM - Forum: General Coding Help - Replies (8)

Hello again! Smile

I'm trying to return a list of all the indexes in the string that have capital letters.

[python]
lista =[]
def capita..... More

Print this item

  Unable to install pyaudio
Posted by: junzhi - Jul-21-2019, 04:49 PM - Forum: General Coding Help - Replies (2)

I tried to install pyaudio for my python project but it won't work once for the dozen of time I tried installing. Is this a problem with the visual st..... More

Print this item

  Why can't I import bs4?
Posted by: kmkim319 - Jul-21-2019, 03:43 PM - Forum: General Coding Help - Replies (2)

An error message says, "You are trying to run the Python 2 version of BS under Python 3."
I have no idea how to make BS4 work on my Python 3.

Print this item

  raw byte of integer
Posted by: jonnin - Jul-21-2019, 03:08 PM - Forum: General Coding Help - Replies (4)

Hello!
I am brand new, so bear with me. I am trying to do a specific polynomial of crc32 in py and that seems to be working but its horribly slow (c..... More

Print this item

  How to print the content of the object?
Posted by: janaki26794 - Jul-21-2019, 01:37 PM - Forum: General Coding Help - Replies (4)

I have a python file in which I have written the following data

[python]@dataclass
class Email:
resource_uri : str
address : str
..... More

Print this item

  Database management in csv format
Posted by: shahmirv - Jul-21-2019, 11:46 AM - Forum: Data Science - Replies (3)

Hi,
I have a software which exports itemwise daily information in a csv format.
I wish to create separate csv files, making the item name as the file ..... More

Print this item

  download data from glucose meter
Posted by: gehrenfeld - Jul-21-2019, 11:37 AM - Forum: News and Discussions - Replies (5)

I have an Abbott Freestyle Glucose Meter and I want to download the data from the meter. I have the USB data cable but could not find any python code ..... More

Print this item

  Why is grequests.map() so slow?
Posted by: M1ck0 - Jul-21-2019, 08:08 AM - Forum: General Coding Help - Replies (1)

So. I am getting links from a website. Storing them in array and then iterating over them.

[python]rs = (grequests.get(d) for d in data)
responses..... More

Print this item

  [PySimpleGui] How to alter mouse click button of a standard submit button?
Posted by: skyerosebud - Jul-21-2019, 04:53 AM - Forum: GUI - Replies (3)

Using PySimpleGui. Does anyone know how to alter the standard Submit button click to center or right mouse button?

Thanks Skyerosebud

Print this item

  Error in print statment
Posted by: leodavinci1990 - Jul-21-2019, 04:17 AM - Forum: General Coding Help - Replies (1)

#Example 2:
n = 32
guess = 0
while guess != (n**3) - 1:
	guess +=1
print("%d is equal to (%d**3)-1",%(guess,n))
Error comes u..... More

Print this item

  a class calling one of its own methods?
Posted by: Skaperen - Jul-21-2019, 03:38 AM - Forum: General Coding Help - Replies (1)

when a method in a class calls one on its own methods (either a different one or itself) does it need to pass self in arg 1 or is it also inclu..... More

Print this item

  Install snit and tklib to included Tcl/Tk
Posted by: chmedly - Jul-21-2019, 02:59 AM - Forum: GUI - No Replies

So, I've been exploring some of the widgets in tklib but I've found that getting it installed on a mac is rather troublesome. On one machine I have i..... More

Print this item

  Simplifying my code
Posted by: ilondire05 - Jul-21-2019, 12:49 AM - Forum: General Coding Help - Replies (5)

Alright, I had a problem where I needed to make two random lists, then make a third list which would contain the elements that the first 2 lists share..... More

Print this item

  Else Statement Not Working
Posted by: SenkouSimmer - Jul-20-2019, 11:20 PM - Forum: Homework - Replies (4)

This is homework, but I'm not asking anyone to do my homework for me. My professor isn't helping me with anything and I've been stuck on this one ques..... More

Print this item

  printing a bytes string
Posted by: Skaperen - Jul-20-2019, 11:18 PM - Forum: General Coding Help - Replies (2)

is there a quick and simple (one statement or one function/method call) to print a byte string (to stdout) without including the b' p..... More

Print this item

  Looking for a "custom" script editor
Posted by: NewBeginnings - Jul-20-2019, 07:32 PM - Forum: General Coding Help - Replies (12)

I started with python in a 3D-application (Autodesk Maya), and I fell in love with its script editor. It looks like this:
[img]https://i.ibb.co/nfNmZ..... More

Print this item

  is there an options parser that can handle + and ++
Posted by: Skaperen - Jul-20-2019, 07:22 PM - Forum: News and Discussions - Replies (1)

i am looking for an options parser that can handle options with - or -- or + or ++. it must support combining single letter options in the same argum..... More

Print this item

  Using map and lambda in a matrix
Posted by: ricardodepaula - Jul-20-2019, 07:04 PM - Forum: General Coding Help - Replies (3)

Hi! I'm new to programming and I'm racking my brain to try to find an sum the diagonal of a matrix using map and lambda.

the matrix:

[inline]

matr..... More

Print this item

  Problem with reading and writing to file.
Posted by: darktitan - Jul-20-2019, 05:10 PM - Forum: General Coding Help - Replies (2)

Hi
I got a code for a csv database where i can write a bit of data and it saves it to a csv file very simple.
My problem is that every time i start ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Weird failure in Selenium 5 hours ago glestwid glestwid General Codin...
  print does not open conso... 7 hours ago Tycho_2025 Axel_Erfurt General Codin...
  Fred Economic Data API 11 hours ago warrior42 Trickety Web Scraping ...
  create ocr to detect lice... Yesterday, 13:58 bimosora noisefloor General Codin...
  Parse Markdown / get the ... Yesterday, 13:56 SpongeB0B noisefloor General Codin...
  Error: cannot mix str wit... 10-01, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... 09-30, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... 09-30, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... 09-29, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
Most views
  The best Prog... 577470
  Tutorial Requ... 501275
  Web Scraping ... 441092
  Newbie with P... 385161
  New Users Int... 369869
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+ 12092
buran 8178
snippsat 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
markwood955 Yesterday
DerekGeel Yesterday
Tycho_2025 Yesterday
chikkamagalur Yesterday
Costa Yesterday

User Panel Messages

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