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,935
» Latest member: Baran12332
» Forum threads: 38,722
» Forum posts: 175,510

Full Statistics

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

Latest Threads
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
11 hours ago
» Replies: 2
» Views: 295
403 Error
Forum: Web Scraping & Web Development
Last Post: CaptainNewb
Yesterday, 06:57 PM
» Replies: 10
» Views: 3,750
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
Yesterday, 12:30 PM
» Replies: 1
» Views: 3,360
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Yesterday, 11:11 AM
» Replies: 4
» Views: 674
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,132
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,017
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 1,251
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,252
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,367
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 930

 
  Idiomatic Python compared
Posted by: pitosalas - Sep-27-2021, 05:17 PM - Forum: News and Discussions - Replies (3)

I've been using python a lot after many years on Ruby. I've been indoctrinated on Ruby community opinions about code smells and idiomatic programing. ..... More

Print this item

  building a sudoku solver
Posted by: usercat123 - Sep-27-2021, 03:07 PM - Forum: General Coding Help - Replies (7)

Hi,

For some reason, a call to solve_sudoku() will not print the solved sudoku, "test" is not even printed and I don't see why. Can anyone help me?..... More

Print this item

  Printing file path of lift elements
Posted by: dyerlee91 - Sep-27-2021, 12:44 PM - Forum: Data Science - Replies (1)

Say I generated a list of all the files in a specific directory, but instead of just the file names, I wanted to print the complete file path for each..... More

Print this item

  Extract text based on postion and pattern
Posted by: guddu_12 - Sep-27-2021, 11:05 AM - Forum: General Coding Help - Replies (2)

Hello Gurus,

I am from sql background and i am working on one python requirement to extract text from the give string based on position and pattern..... More

Print this item

  Amortized analysis: Insertion in a list
Posted by: quazirfan - Sep-26-2021, 10:05 PM - Forum: General Coding Help - Replies (1)

I am trying to calculate the time is takes to append one element in a list. According to amortized analysis, it should be constant regardless how long..... More

Print this item

  Combining arrays into dict
Posted by: ebolisa - Sep-26-2021, 09:06 PM - Forum: General Coding Help - Replies (7)

Hi,

I'm trying to create a dictionay combining 2 arrays but I just cannot get it right.
The end result should be: EDITED: [python]{'in_ledS':0, 'in_l..... More

Print this item

  Descending order unique squares
Posted by: OmegaRed94 - Sep-26-2021, 07:15 AM - Forum: Homework - Replies (6)

Good day, Dear Pythonistas

I have the following problem: [b]Given a list, we should write a function that returns sorted in descending order unique ..... More

Print this item

  How can I loop PyAutoGUI's locateCenterOnScreen until the image is found?
Posted by: Tiel - Sep-26-2021, 07:06 AM - Forum: GUI - Replies (2)

I'm running Python 3.8.10 on Lubuntu 20.04 LTS.

How can I modify:
`a, b = pyautogui.locateCenterOnScreen('/home/image01.png', confidence=0.6, regi..... More

Print this item

  For Loop Returning 3 Results When There Should Be 1
Posted by: knight2000 - Sep-26-2021, 03:11 AM - Forum: General Coding Help - Replies (12)

Hi Guys,

After trying to figure this one out for over 8 hours, I thought I would get a fresh perspective from someone.

I'm practicing some web ..... More


Attached Files

.html   out_of_stock2.html (Size: 7.61 KB / Downloads: 414)
Print this item

  width of Unicode character
Posted by: Skaperen - Sep-26-2021, 02:16 AM - Forum: General Coding Help - Replies (6)

i have been print()ing Unicode characters (not on paper) from a script that wraps them in double quotes. this overlapped so i added an extra space af..... More

Print this item

  Solving periodic cot(x) function
Posted by: TheGoodTheBadTheUgly - Sep-25-2021, 10:16 PM - Forum: General Coding Help - Replies (1)

Hello everyone,

I am looking to know of it's possible in python to solve the following equation: cot(x)*a-x=0 where a is a constant. ..... More

Print this item

  deep learning python
Posted by: Stevedas - Sep-25-2021, 10:15 PM - Forum: General Coding Help - Replies (1)

WHat does x_train, y_train = zip(*train) mean? WHat does the "zip" and the asterick mean? How are they dividing X and Y ?

[python]for x in range(40..... More

Print this item

  AttributeError: 'NoneType' object has no attribute 'text'
Posted by: speedev - Sep-25-2021, 10:10 AM - Forum: GUI - Replies (9)

Hi,

[python] for x in secilen.indexes():
satirlar = '{ "row" : 2, "column": 2 }'
asdds = json.loads(satirlar)
..... More


Attached Files

Thumbnail(s)
   
Print this item

  [UnicodeEncodeError from smtplib]
Posted by: yoohooos - Sep-25-2021, 04:27 AM - Forum: General Coding Help - No Replies

[UnicodeEncodeError from smtplib] 'ascii' codec can't encode character '\u2019' in position 77: ordinal not in range(128)

I'm trying to send an ema..... More

Print this item

  problem writing dataframe to oracle
Posted by: aliyesami - Sep-25-2021, 12:38 AM - Forum: General Coding Help - Replies (4)

i have a simple csv file as follows :

Output:
1,'sami' 2.'john', 3,'mary' 4,'peter'
and i have a table [inline]test(id, name[/inline..... More


Attached Files

.txt   run_with_header_none.txt (Size: 3.35 KB / Downloads: 362)
.txt   run_withhout_header_none.txt (Size: 3.35 KB / Downloads: 349)
Print this item

  Learned Python Basics, what now?
Posted by: muzikman - Sep-24-2021, 11:25 PM - Forum: General Coding Help - Replies (20)

Greetings,

I took a course that covered most of the Python basics including, OOP, inheritance, scraping, generators, decorators and most collection..... More

Print this item

  Tkinter | entry output.
Posted by: Sap2ch - Sep-24-2021, 09:59 PM - Forum: GUI - Replies (1)

Good night forum. Let me help in times of crisis. I write the key in the first line, but this key knocks out to me not in the second line, but in the ..... More

Print this item

  First time with mysql
Posted by: pascal111 - Sep-24-2021, 08:12 PM - Forum: General Coding Help - Replies (5)

I'm a Python beginner, and tried to learn mysql, I typed this code:

[python]
import mysql.connector

mydb = mysql.connector.connect(user="pascal..... More

Print this item

  PyCharm Error?
Posted by: coder_sw99 - Sep-24-2021, 05:43 PM - Forum: General Coding Help - Replies (4)

I have a problem with PyCharm. The Desctructor Method gets initialized, without it even been called. If I try it in the Python IDLE the intepreter doe..... More

Print this item

  Add Tor proxy to blockchain API call
Posted by: balonmd - Sep-24-2021, 05:34 PM - Forum: General Coding Help - No Replies

He everyone.
I am trying to call blockchain address detail endpoint several times. After a while my IP is blocked, and the response of my call is 429..... More

Print this item

  Debugging with functions
Posted by: Mark17 - Sep-24-2021, 04:37 PM - Forum: General Coding Help - Replies (6)

Hi all,

I'm working with a program that operates largely with functions. The functions are all defined at the top with the main program starting ~..... More

Print this item

  Can't write to file
Posted by: Mark17 - Sep-24-2021, 03:34 PM - Forum: General Coding Help - Replies (2)

Hi all,

What am I doing wrong here?

[Python]
test_file = open("C:Users/Mark/Desktop/test.csv",mode="w")
for i in range(11):
print(i, file..... More

Print this item

Smile RemoteDataError (PredictingCrpytoPrices)
Posted by: lulu43366 - Sep-24-2021, 01:38 PM - Forum: General Coding Help - Replies (8)

Good afternoon to the community Smile .
I am using Google Colaboratory.
I want to predict the price of cryptocurrencies.
But the console shows ..... More

Print this item

Exclamation Invalid syntax error(Predict Ethereum Price)
Posted by: lulu43366 - Sep-24-2021, 12:25 PM - Forum: General Coding Help - Replies (2)

Good morning to the community Smile. I am using google colaboratory.
I would like to forecast the price of Ethereum.
But the console shows me t..... More

Print this item

  Getting All Items From A List
Posted by: knight2000 - Sep-24-2021, 11:31 AM - Forum: General Coding Help - Replies (4)

Hey guys,

In practicing some webscrapping with BeautifulSoup and Selenium.
Using the find_all to extract a class, I get the following list:
..... More

Print this item

  Unable to use Pauli Matrices in QNET Package
Posted by: Rupayan - Sep-24-2021, 11:05 AM - Forum: General Coding Help - Replies (2)

Hello everyone, I work with simulation softwares like QNET and Qutip which are based on Python. I am trying to use QNET Package in my project. In this..... More

Print this item

  Remove specific values from dataframe
Posted by: jonah88888 - Sep-24-2021, 05:09 AM - Forum: Data Science - No Replies

I would like to remove specific values from dataframe.

For example, my dataset

[output]union1
17 215 Marsiling
18 653 W..... More

Print this item

  Problem executing a script on a remote host
Posted by: tester_V - Sep-24-2021, 04:57 AM - Forum: General Coding Help - Replies (3)

Greetings!

I have a remote host(windows) and a system(windows based) connected to it by a private network.
The host has Python 27 on it.
Once a d..... More

Print this item

  How to do an Merge
Posted by: jonah88888 - Sep-24-2021, 03:41 AM - Forum: Data Science - No Replies

I have a set of data A
[output]19 101 Tampines
20 36 Mt Vernon
21 408 Fajar Rd
22 1..... More

Print this item

  Panda Exercise
Posted by: nyzs92 - Sep-24-2021, 03:34 AM - Forum: Homework - No Replies

Hi guys,

New here to this forum!

I receive this error message "ValueError: If using all scalar values, you must pass an index" and have no idea ..... More

Print this item

  Putting column name to dataframe, can't work.
Posted by: jonah88888 - Sep-24-2021, 03:18 AM - Forum: Data Science - Replies (2)

I tried to put a column name for normal dataframe by putting df.columns = ['ColumnName'] It works. But, after I pd.concat(df,df1), I can't put a colum..... More

Print this item

  How to make this piece concise
Posted by: leoahum - Sep-23-2021, 09:23 PM - Forum: General Coding Help - No Replies

I am setting up a script in a 3D modeling program called Rhino(Use ironPython) and its Visual Scripting Tool (Grasshopper). "Active" is an input bool..... More

Print this item

  Module: Turtle issues
Posted by: Underscore - Sep-23-2021, 05:57 PM - Forum: GUI - Replies (4)

I am having issues with the module turtle
And i have no idea how to fix it because of the very unspecific error.
My code:
[python]
import turtle
..... More

Print this item

  Add a function in QtextBrowser
Posted by: catlessness - Sep-23-2021, 05:17 PM - Forum: GUI - Replies (3)

This could be a general question about how to add a function in an existing class:

I want the textBrowser to scroll down to the bottom every time I..... More

Print this item

  Retrieving last 20 file paths from directory
Posted by: dyerlee91 - Sep-23-2021, 04:46 PM - Forum: Data Science - Replies (3)

Hello all,

I'm having a hard time getting this script across the finish line. I want to display only the last 20 file paths in the given directory..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  what does % stand for in ... 11 hours ago arbiel arbiel General Codin...
  403 Error Yesterday, 18:57 CaptainNewb CaptainNewb Web Scraping ...
  Scraping a page with log ... Yesterday, 12:30 iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... Yesterday, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  Another app idea - intera... 09-16, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... 09-15, 15:28 Bona2000 Bona2000 General Codin...
Most views
  The best Prog... 576268
  Tutorial Requ... 497948
  Web Scraping ... 440192
  Newbie with P... 384046
  New Users Int... 366783
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 8175
snippsat 7367
deanhystad 6891
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Baran12332 Yesterday
Hershien Yesterday
Diyaseating Yesterday
marineoman Yesterday
marineservice Yesterday

User Panel Messages

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