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,422
» Latest member: alexfox
» Forum threads: 38,829
» Forum posts: 176,077

Full Statistics

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

Latest Threads
If I open a file write or...
Forum: General Coding Help
Last Post: bowlofred
13 minutes ago
» Replies: 5
» Views: 106
a function to watch files
Forum: News and Discussions
Last Post: Skaperen
Yesterday, 05:21 AM
» Replies: 3
» Views: 746
python re.finditer return...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 02:57 AM
» Replies: 8
» Views: 508
Exponential Number Conver...
Forum: General Coding Help
Last Post: DeaD_EyE
Jan-09-2026, 08:47 PM
» Replies: 4
» Views: 452
Possible bug found, pleas...
Forum: General Coding Help
Last Post: alexajames
Jan-08-2026, 04:31 PM
» Replies: 14
» Views: 800
How to put my game loop i...
Forum: Game Development
Last Post: MarkHenry
Jan-08-2026, 12:47 PM
» Replies: 12
» Views: 7,761
Code failing to ask input...
Forum: Homework
Last Post: perfringo
Jan-08-2026, 06:35 AM
» Replies: 4
» Views: 731
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: OtiliaGen
Jan-07-2026, 07:13 AM
» Replies: 6
» Views: 1,033
Data Science
Forum: Data Science
Last Post: OtiliaGen
Jan-04-2026, 10:20 AM
» Replies: 4
» Views: 3,622
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
Jan-02-2026, 12:32 PM
» Replies: 29
» Views: 17,379

 
  for loop execution
Posted by: sumandas89 - Nov-27-2017, 08:19 AM - Forum: General Coding Help - Replies (5)

I python documentation I found the below code and it's output -

[b]>>> a = ['Mary', 'had', 'a', 'little', 'lamb']
>>> for i in range(len(a)):
........ More

Print this item

  interesting gotcha
Posted by: Skaperen - Nov-27-2017, 07:49 AM - Forum: News and Discussions - Replies (11)

i have been putting comments in the triple-quoted string at the beginning of modules and functions.  this was the source of some errors that did not s..... More

Print this item

  Two Dimensional Chart from CSV File
Posted by: srini1995 - Nov-27-2017, 07:10 AM - Forum: Data Science - No Replies

The file contains some data points in Melbourne housing data.
1. Average price per Suburb (Suburd name in X-axis and Average price in Y-Axis)
2. Tot..... More

Print this item

  change to home directory
Posted by: Skaperen - Nov-27-2017, 04:20 AM - Forum: General Coding Help - Replies (2)

what is the "best", most pythonic, way to change to the home directory so that all file operations are now relative to the home directory and any prog..... More

Print this item

  BS4 - Is There A More Efficient Way Of Doing This?
Posted by: digitalmatic7 - Nov-27-2017, 04:03 AM - Forum: Web Scraping & Web Development - Replies (4)

Say I want to search for 30 keywords within each set of scraped html data, what would be the best way to go about it? Should I keep repeating the same..... More

Print this item

  Need help with a Basic API Query.
Posted by: TopCoder - Nov-27-2017, 03:19 AM - Forum: General Coding Help - Replies (3)

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  Basic input() function question
Posted by: rebubula76 - Nov-27-2017, 02:46 AM - Forum: General Coding Help - Replies (2)

Hi everyone,

Started programming for the first time using Python and I've gotten through all the basics and practicing putting everything together...... More

Print this item

  bytes == str
Posted by: Skaperen - Nov-27-2017, 02:16 AM - Forum: News and Discussions - Replies (4)

bytes == str is always True on python2 and always False on python3.  so i have been using it for version testing, at least for major ..... More

Print this item

  Replacing values for specific columns in Panda data structure
Posted by: Padowan - Nov-26-2017, 11:42 PM - Forum: Data Science - Replies (1)

Hello!

Im trying to replace invalid values ( x< -3 and x >12) with 'nan's in a pandas data structure . The first two columns consist of ids and nam..... More


Attached Files

.csv   testfilex1w.csv (Size: 745 bytes / Downloads: 166)
Print this item

  Help with the string and len quiz
Posted by: destinyus - Nov-26-2017, 09:08 PM - Forum: Homework - Replies (2)

given_name = "Charlotte"
middle_names = "Hippopotamus"
family_name = "Turner"

name_length = #todo: calculate how long this name is

driving_lic..... More

Print this item

  while iterating a list, it changes all the elements at once
Posted by: henrik0706 - Nov-26-2017, 08:10 PM - Forum: General Coding Help - Replies (7)

I have a 3x3 square that is filled with None values [[None, None, None], [None, None, None], [None, None, None]]
I want to fill the first row and col..... More

Print this item

  Help with conditions in loops
Posted by: NathanWang - Nov-26-2017, 07:21 PM - Forum: Homework - Replies (2)

Given a sequence of integer numbers ending with the number 0. Determine the length of the widest fragment where all the elements are equal to each oth..... More

Print this item

  Can you please Define python structure charts ?
Posted by: zuzu_tahan - Nov-26-2017, 06:16 PM - Forum: Homework - Replies (8)

please define structure charts for python. Choose on this multiple choice each question. They can't have the same answer.
Multiple choice:
Utility..... More

Print this item

  make StaticText limit Number
Posted by: royer14 - Nov-26-2017, 06:15 PM - Forum: GUI - Replies (4)

I have an issue with StaticText, and I do not know how to make it accept only the following data = '0123456789.' . Of course, when you type any..... More

Print this item

  Need help with my home task Phyton 3
Posted by: Bazzket - Nov-26-2017, 05:54 PM - Forum: Homework - Replies (1)

I am using Phython 3
I need to make a program that asks for the number of people to be transported and the number of seats in a single bus and displa..... More

Print this item

  Need Help
Posted by: wagrig - Nov-26-2017, 05:52 PM - Forum: General Coding Help - No Replies

Need help with the code
def main():
miles=0;class_type=""
#class_type is a string literal so it should=""open quotes and not()
miles=getInput(mile..... More

Print this item

  Help with loop
Posted by: thanikos - Nov-26-2017, 05:16 PM - Forum: Homework - Replies (13)

Hello
Any ideas how to do this:
0 1 2 3 4 5 6 7 8 9
10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29
30 31 32 33 34 35 36 ..... More

Print this item

  ValueError: unknown url type: ' '
Posted by: ozzyk - Nov-26-2017, 04:09 PM - Forum: General Coding Help - Replies (3)

I have this code below that iterate through some tracks. And then for each track I want to use the musixmatch api to get and print the lyrics of the ..... More

Print this item

  need help in natural language processing
Posted by: irsyadfm - Nov-26-2017, 12:47 PM - Forum: Homework - Replies (7)

Hello guys,, Smile Smile

I have a task about NLP programming and I'am still beginner in this programming.

The program is about how th..... More

Print this item

  Text editing with python
Posted by: UK_SPB - Nov-26-2017, 08:17 AM - Forum: General Coding Help - Replies (1)

Hi, I have a *.txt 3d scan file in the form of x,y,z...

-43.9017 58.4327 8.0448 0.5321
-43.9031 58.4574 8.0457 0.4800
-43.9247 58.4600 8.0505 0.5..... More

Print this item

  random syntax errors
Posted by: s4lty_b0i - Nov-26-2017, 04:28 AM - Forum: General Coding Help - Replies (3)

trying to code the motor drivers for my robot but every time i type def it gives me an error, like actuallt every function is an error, no idea why
..... More

Print this item

Question Helping understand classes
Posted by: Miraclefruit - Nov-26-2017, 03:54 AM - Forum: General Coding Help - Replies (10)

According to the solutions, the following code prints out 
Square with side 5.0
Rectangle with area 6.0
Circle with radius 2.0
Square with side 6...... More

Print this item

  Strings with speech_recognition
Posted by: hello_its_me - Nov-25-2017, 10:25 PM - Forum: General Coding Help - Replies (7)

Hi everyone,
I am trying to build my own google assistant but I got a problem I've already got the speech recognition but the problem is how do I sep..... More

Print this item

  can´t store the mbid - `KeyError: 'mbid'`.
Posted by: ozzyk - Nov-25-2017, 09:52 PM - Forum: General Coding Help - Replies (7)

I'm getting the tracks of some albums from lastfm. Then for each track I'm getting some information (title, number, artist, etc). Then, I want also to..... More

Print this item

  Replace all alpha characters within double quotes with underscores?
Posted by: walterbyrd - Nov-25-2017, 09:25 PM - Forum: General Coding Help - Replies (1)

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  Google search
Posted by: hello_its_me - Nov-25-2017, 07:47 PM - Forum: General Coding Help - Replies (10)

Hi everyone,
I am just playing around with Python3 and I wonder how I can open a browser and search for something automatically. I found some ideas ..... More

Print this item

  Windows/linux shell emulation
Posted by: AceScottie - Nov-25-2017, 07:35 PM - Forum: General Coding Help - Replies (3)

hello. 
I'm looking for a way to run commands and execute programs on both windows and Linux system to make my servers more accessible than running m..... More

Print this item

  Netmiko - add multiple files, from different folders to mail.
Posted by: tomikovaknin - Nov-25-2017, 07:16 PM - Forum: General Coding Help - Replies (5)

Hi all

im trying to get some reports from my network devices with netmiko.
i implement script that log into list of devices and runs commands from..... More

Print this item

  Checking for items in variable
Posted by: AnOrdinaryFolk - Nov-25-2017, 06:36 PM - Forum: Homework - Replies (3)

I have a very simple issue that i just can't get right.
It is strange because i remember being able to do this. But now the code i always used to us..... More

Print this item

  Iterating over pandas.df to check for values out of range
Posted by: Padowan - Nov-25-2017, 05:23 PM - Forum: Homework - Replies (14)

Hello!

I am taking a introductory course in python programming at uni., 3 weeks in., and have been assigned to make a student grading script.

I ..... More

Print this item

  I don't know if it's my error or Python error
Posted by: SkitzGerald - Nov-25-2017, 03:38 PM - Forum: General Coding Help - Replies (13)

[python]import random
from random import randint
x = [random.randint(1,100)]

print("Guess a number between 1 and 100.")

while True:
guess = ..... More

Print this item

  If else help
Posted by: thanikos - Nov-25-2017, 01:41 PM - Forum: Homework - Replies (10)

Hi everyone
I' just started with python and i am not so good with math...but i am trying. I need some help with my homework to:

[b]"Create a little p..... More

Print this item

  split the line fixed length tokens
Posted by: bb8 - Nov-25-2017, 01:40 PM - Forum: Homework - Replies (5)

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  Parallel processing and distributed computing with Python
Posted by: GarlicScience - Nov-25-2017, 12:38 PM - Forum: News and Discussions - Replies (5)

What are the most popular approaches for parallel processing and distributed computing using Python.

1. Does it worth to use Python for such tasks?..... More

Print this item

  No menu bar in window
Posted by: bde69 - Nov-25-2017, 11:22 AM - Forum: GUI - Replies (5)

Hello,

Please could you help me to understand why I cannot properly run this code under mac OS :

[python]
#!/usr/bin/python
# coding: utf-8
..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  If I open a file write or... 13 minutes ago Pedroski55 bowlofred General Codin...
  a function to watch files Yesterday, 05:21 Skaperen Skaperen News and Disc...
  python re.finditer return... Yesterday, 02:57 arbiel Pedroski55 General Codin...
  Exponential Number Conver... 01-09, 20:47 Tuurbo46 DeaD_EyE General Codin...
  Possible bug found, pleas... 01-08, 16:31 Hassher alexajames General Codin...
  How to put my game loop i... 01-08, 12:47 temlotresid6 MarkHenry Game Developm...
  Code failing to ask input... 01-08, 06:35 Phoenix_Narukami perfringo Homework
  sorting a lisr of file pa... 01-07, 07:13 Skaperen OtiliaGen News and Disc...
  Data Science 01-04, 10:20 Oshadha OtiliaGen Data Science
  Merge video with subtitle... 01-02, 12:32 Pavel_47 OtiliaGen General Codin...
  Check if running from she... 01-01, 11:52 rjdegraff42 noisefloor General Codin...
Most views
  The best Prog... 580739
  Tutorial Requ... 522273
  Web Scraping ... 442914
  New Users Int... 388144
  Newbie with P... 387140
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 8197
snippsat 7399
deanhystad 6921
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
alexfox Yesterday
zalexisshulzeo8879 Yesterday
SUMIATI Yesterday
starboy25 Yesterday
zabenjamitop8877 01-10

User Panel Messages

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