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,400
» Latest member: zcharlesoogleto9533
» Forum threads: 38,826
» Forum posts: 176,030

Full Statistics

Online Users
There are currently 32 online users.
» 0 Member(s) | 27 Guest(s)
Bing, Mojeek, Google, Applebot

Latest Threads
Womens From Your City - A...
Forum: General Coding Help
Last Post: Larry1888
21 minutes ago
» Replies: 0
» Views: 14
What Happens At The End O...
Forum: General Coding Help
Last Post: asauellittle8716
1 hour ago
» Replies: 0
» Views: 18
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
1 hour ago
» Replies: 1
» Views: 37
Погрузитесь в ясность аза...
Forum: General Coding Help
Last Post: luisfrancesz3208
1 hour ago
» Replies: 0
» Views: 11
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Yesterday, 09:12 AM
» Replies: 1
» Views: 4,586
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 08:37 AM
» Replies: 4
» Views: 177
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
Yesterday, 07:27 AM
» Replies: 7
» Views: 3,593
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 142
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Dec-27-2025, 04:06 PM
» Replies: 9
» Views: 289
IP address for users
Forum: Networking
Last Post: itx_sumeet
Dec-27-2025, 05:53 AM
» Replies: 4
» Views: 7,107

 
  Python OOP - two numbers
Posted by: ben1122 - Sep-27-2021, 05:30 PM - Forum: Homework - Replies (31)

Okay, basically, the question is in hebrew ( my land launage), so I am translating it for you in english, hopefully it will be a good translation:

Wr..... More

Print this item

  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: 426)
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: 371)
.txt   run_withhout_header_none.txt (Size: 3.35 KB / Downloads: 359)
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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Womens From Your City - A... 21 minutes ago Larry1888 Larry1888 General Codin...
  What Happens At The End O... 1 hour ago asauellittle8716 asauellittle8716 General Codin...
  Opencv findContours Q 1 hour ago jogl Pedroski55 General Codin...
  Погрузитесь в ясность аза... 1 hour ago luisfrancesz3208 luisfrancesz3208 General Codin...
  Struggles I Faced While E... Yesterday, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... Yesterday, 08:37 braillescribe noisefloor General Codin...
  Create dataframe from the... Yesterday, 07:27 Calab OtiliaGen Data Science
  How to Integrate External... 12-27, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... 12-27, 16:06 eedjsa eedjsa General Codin...
  IP address for users 12-27, 05:53 Robots itx_sumeet Networking
  Lottery generator (beginn... 12-27, 01:10 Hullari Pedroski55 General Codin...
Most views
  The best Prog... 580410
  Tutorial Requ... 519522
  Web Scraping ... 442785
  Newbie with P... 386984
  New Users Int... 386506
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 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
zcharlesoogleto9533 Today
asauellittle8716 Today
luisfrancesz3208 Today
MaxTranslate Yesterday
pizofreude Yesterday

User Panel Messages

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