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 45 online users.
» 0 Member(s) | 40 Guest(s)
Applebot, Bing, Google, 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
Yesterday, 03:05 PM
» 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

 
  [split] beginner help
Posted by: AMT59 - Nov-20-2019, 09:31 AM - Forum: General Coding Help - Replies (8)

I am completely new about Python and on this forum. I installed Python 3.8.0 (64-bit), and learned that I need BeautifulSoup for webscraping. So I t..... More

Print this item

  traceback reports "wrong" file and line
Posted by: Skaperen - Nov-20-2019, 07:34 AM - Forum: News and Discussions - Replies (5)

technically, it's correct, but useless:
[output]
lt2a/forums /home/forums 5> cat foo.py
a=1
b=2
c=3
d=f'hello {world{}}'
lt2a/forums /home/foru..... More

Print this item

  pyxcel_ods formula
Posted by: eslavko - Nov-20-2019, 07:20 AM - Forum: General Coding Help - Replies (1)

Hello...

Maybe not best forum for this question but let's try.
I want to export hyperlink with pyxcel_ods.
If I read ods file with link and save..... More

Print this item

  How do I calculate a ratio from 2 numbers and return an equivalent list of about 1000
Posted by: Pleiades - Nov-20-2019, 04:47 AM - Forum: General Coding Help - Replies (8)

I was online at this amazing site for equivalent ratios. I would love to mimic or do the same as an output in python, but its a bit over my skills.
..... More

Print this item

  str.endswith(): vague documentation
Posted by: Skaperen - Nov-20-2019, 04:10 AM - Forum: News and Discussions - Replies (4)

reading up on str.endswith() i find the optional arguments start and end to be described vaguely. it does not say how the..... More

Print this item

  making code more readable
Posted by: Skaperen - Nov-20-2019, 03:03 AM - Forum: Bar - No Replies

sometimes i find code with one statement bodies after if or for or else or elif on the same line easier to read. that's because there are fewer lines..... More

Print this item

  Recursion
Posted by: leodavinci1990 - Nov-20-2019, 01:29 AM - Forum: General Coding Help - Replies (7)

[python]def power(n,p):
""" Return n to the power p. Works only for positive integers """
return n*power(n,p-1)
if __name__ == '__main__':
pri..... More

Print this item

  making a module mimic another module
Posted by: Skaperen - Nov-20-2019, 12:41 AM - Forum: News and Discussions - Replies (1)

i want to create a module that mimics another module in a special way. in order to do this i need to create functions in my module with names discove..... More

Print this item

  Call to a print in a defined function
Posted by: leodavinci1990 - Nov-20-2019, 12:40 AM - Forum: General Coding Help - Replies (1)

[python]def fib(n): # write Fibonacci series up to n
"""Print a Fibonacci series up to n."""
a = 0
b = 1
while a < n:
..... More

Print this item

  Pass by reference vs Pass by value
Posted by: leodavinci1990 - Nov-19-2019, 11:41 PM - Forum: General Coding Help - Replies (1)

[python]#What is the output?
val=100
print(val)
def changeVal():
val=99
print(val)
changeVal()
print(val)


#What is the output?
vals=[100,100..... More

Print this item

  New Python learner looking for key word guidance
Posted by: naga - Nov-19-2019, 10:39 PM - Forum: General Coding Help - Replies (2)

Hi, I'm very new to python. I'm seeking some key word in order help me search for the good tutorial(s).

I hope it will make sens... I'm trying to c..... More

Print this item

  "Up to but not including" (My personal guide on slicing & indexing)
Posted by: Drone4four - Nov-19-2019, 10:35 PM - Forum: General Coding Help - Replies (5)

I’m writing a mini guide for myself for future reference on indexing strings and lists and how they compare to parameters that are passed into randint..... More

Print this item

  bar graph
Posted by: prateekshaw - Nov-19-2019, 10:33 PM - Forum: General Coding Help - No Replies

[python]
import matplotlib.pyplot as plt; plt.rcdefaults()
import numpy as np
import matplotlib.pyplot as plt

x_axis_value = ('A', 'B', 'C', 'D'..... More

Print this item

  Columns in a table
Posted by: Reldaing - Nov-19-2019, 09:13 PM - Forum: General Coding Help - Replies (7)

Hi, I'm looking for switching two columns in a table. I made a function , but I doon't know the syntax of an array switching in python . Could you guy..... More

Print this item

  What was my mistake in this Python code (easy)?
Posted by: voltman - Nov-19-2019, 07:21 PM - Forum: General Coding Help - Replies (4)

Hi everyone,

Just learning python for the first time but I am having some difficulties.

I'm having some trouble with the code below:
[python]
..... More

Print this item

  why my function doesn't work
Posted by: cimerio - Nov-19-2019, 06:51 PM - Forum: General Coding Help - Replies (4)

Hi, I am a beginner.

I need help. Why the code below doesn't return nothing?

[python]def tax(year, value):
if year > 2004:
tax = v..... More

Print this item

  Removing duplicate list items
Posted by: eglaud - Nov-19-2019, 06:37 PM - Forum: General Coding Help - Replies (4)

Hello, I am creating a code that allows the user to paste copied excel cells into a function that will return all the entries with commas, properly ca..... More

Print this item

  Timer for Python that doesn't interrupt the program
Posted by: codewraith - Nov-19-2019, 06:25 PM - Forum: Homework - Replies (1)

I have to implement the AIMD protocol where I will send the quantity of packets of my sliding window to other server, and while I don't lose any packe..... More

Print this item

  Help with Unit Tests
Posted by: pdub787 - Nov-19-2019, 04:35 PM - Forum: Homework - Replies (3)

Hi There! When unittest'ing a simple program that prompts for a first and last name, I'm getting a "repl process died unexpectedly" return.

[pyth..... More

Print this item

  Using function *args to multiply multiple arguments
Posted by: allusernametaken - Nov-19-2019, 04:07 PM - Forum: General Coding Help - Replies (8)

I'm a beginner in Python and have a question.
I now understand the basics of a function and what an asterisk does when it's used in a parameter.

H..... More

Print this item

  First Byte of a string is missing while receiving data over TCP Socket
Posted by: shahrukh1987 - Nov-19-2019, 03:45 PM - Forum: General Coding Help - Replies (3)

Dear All Friends.
I am trying to communicate with an IEC-60870-5-104 server through TCP sockets. The IEC server is located over the local host 127.0...... More

Print this item

  beginner help
Posted by: ksoni - Nov-19-2019, 02:41 PM - Forum: General Coding Help - Replies (2)

I just started python with THONNY IDE.

I have a sample code for remove 'n' th character.

Tested it works fine, then i edit the code for remove '..... More

Print this item

  Regex Help for clubbing similar sentence segments
Posted by: regstuff - Nov-19-2019, 12:10 PM - Forum: General Coding Help - Replies (3)

Hi,
I have a corpus which contains sentences in a certain pattern, which I would like to change by applying Regex.

The pattern is [a certain set o..... More

Print this item

  Python Based Data QA Automation tool suggestion
Posted by: Sonia567 - Nov-19-2019, 11:48 AM - Forum: General Coding Help - Replies (1)

My Source system is DB2 and Target System is Hive. i have used Apache Spark to perform ETL data cleansing and standardization.

I am trying to creat..... More

Print this item

  modify script.
Posted by: MuhammadTalha - Nov-19-2019, 11:43 AM - Forum: General Coding Help - Replies (15)

Hi i want to modify python script, so it can not look for a specific file.
In my case i want it to not look for .dvscf1.

Regards
Muhamma..... More

Print this item

  wordsearch
Posted by: rontoto - Nov-19-2019, 11:23 AM - Forum: General Coding Help - Replies (2)

Hi, I have got a problem in my searchword. Everything runs properly. Output writes word, coordinates and direction, but i need, that output have same ..... More

Print this item

  Parquet format conversion problem
Posted by: Bilhardas - Nov-19-2019, 11:03 AM - Forum: General Coding Help - Replies (1)

Hello guys

I need help with parquet conversion:

Given the attached CSV file named "parquet-test.csv", i need to convert it into parquet format...... More

Print this item

  Writting to file from if/else statement
Posted by: mcmxl22 - Nov-19-2019, 10:24 AM - Forum: General Coding Help - Replies (2)

The original code is here.

The goal of this code is to h..... More

Print this item

  What the difference between python2 and python3 when they running my code.
Posted by: lpangfeic - Nov-19-2019, 09:09 AM - Forum: Web Scraping & Web Development - Replies (1)

I am writing proof of content for CVE-2019-11043 with python2, I can only run my code properly on python3, but not python2. I was wondering what's the..... More

Print this item

  Classification of Request
Posted by: PythonLearner703 - Nov-19-2019, 04:14 AM - Forum: Data Science - Replies (8)

Python: How to categorize the request in different categories for example in 3 categories based on any 3 ex. aa, bb, cc (any):, using KMeans or any ot..... More

Print this item

  Class Problem
Posted by: scratchmyhead - Nov-19-2019, 02:40 AM - Forum: General Coding Help - Replies (3)

I am writing a python program exactly the way my course instructor has and when I try to run on my end, I get the following error: AttributeError: 'T..... More

Print this item

  Trying to print an uneven list to a even table
Posted by: Mike2607 - Nov-19-2019, 01:44 AM - Forum: General Coding Help - Replies (6)

[python]def main():
mycities = ['Cape Girardeau, MO 63780','Columbia, MO 65201',
'Kansas City, MO 64108','Rolla,MO 65402',
..... More

Print this item

  Need advice how to scrape a Chinese webpage
Posted by: omar - Nov-19-2019, 01:11 AM - Forum: Web Scraping & Web Development - Replies (2)

I need to scrape a Chinese webpage on a website that needs logging in + verification by mobile.

I have a username and password. I can login and ver..... More

Print this item

  Can someone explain what ".after" means?
Posted by: p_hobbs - Nov-19-2019, 12:00 AM - Forum: GUI - Replies (2)

So, I'm writing a tkinter GUI, and it's all going pretty well. I'm new to python, and most of my coding knowledge comes from Excel VBA.

So, I've go..... More

Print this item

  Invalid syntax defining a dictionary?
Posted by: ep595 - Nov-18-2019, 11:02 PM - Forum: Homework - Replies (6)

Hi everyone! I'm currently working on an assignment for a Python course. The full task:
[i]A county planning body has requested an interactive tool t..... 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 Yesterday, 15:05 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