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,257
» Latest member: Bamboo
» Forum threads: 38,782
» Forum posts: 175,837

Full Statistics

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

Latest Threads
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
47 minutes ago
» Replies: 3
» Views: 97
[solved] re.split issue
Forum: General Coding Help
Last Post: DeaD_EyE
4 hours ago
» Replies: 9
» Views: 180
New to python and coding
Forum: Homework
Last Post: jefsummers
Yesterday, 07:58 PM
» Replies: 6
» Views: 192
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Yesterday, 11:52 AM
» Replies: 6
» Views: 367
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
Nov-12-2025, 07:26 PM
» Replies: 2
» Views: 123
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-12-2025, 10:11 AM
» Replies: 6
» Views: 251
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 401
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 152
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,646
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 255

 
  MONEY CHANGE
Posted by: OmarSinno - Oct-20-2017, 09:36 AM - Forum: General Coding Help - Replies (5)

[python]amount=int(input("Please enter amount in LBP: "))
bills = [100,50,20,10,5,1]
billsReturned = []

def change(amount):
    for i in bills:..... More

Print this item

  natural logarithm print
Posted by: atux_null - Oct-20-2017, 09:07 AM - Forum: Homework - Replies (5)

[nodisplay]please give a runnable sample of your code with the full error text or a clear description of the problem

Please use python tags for cod..... More

Print this item

  Please Help - Auto-Login
Posted by: shiny - Oct-20-2017, 07:21 AM - Forum: Web Scraping & Web Development - Replies (1)

Good Day,

I'm working on Auto-LogIn for the flowing webpage.
I'm very new to the Python; and I have been following a YouTube tutorial.

I need ..... More

Print this item

  Python-Spyder error opening
Posted by: integrak20 - Oct-20-2017, 05:44 AM - Forum: General Coding Help - No Replies

Hello, I am having trouble with my python, specifically Spyder.

I downloaded Anaconda from continuum.io. But everytime I open it, it says it crashe..... More

Print this item

  NEED HELP Pseudo-Random Numbers
Posted by: Kongurinn - Oct-20-2017, 01:01 AM - Forum: Homework - Replies (9)

Hey everyone. I've been coding for about a month now. Trying to figure out the assignment I got this week. THe assignment asked me to find if there we..... More

Print this item

  Error message in code
Posted by: Nistacta - Oct-19-2017, 09:38 PM - Forum: General Coding Help - Replies (2)

I need help with my code. the error message says:

[error]Traceback (most recent call last)
File "F:/Information format.py", line 17, in <module..... More

Print this item

  Python shell not functioning
Posted by: Kongurinn - Oct-19-2017, 09:38 PM - Forum: General Coding Help - Replies (2)

I'm having issues with the python shell itself and running some functions. I've tried importing the random library and whenever I use seed nothing hap..... More

Print this item

  Removing string within string
Posted by: fivestar - Oct-19-2017, 09:25 PM - Forum: Homework - Replies (2)

I am trying to remove part of a string withing a string. for example if a string is "atgtga" i want the output to be "atg" my if statement is
[inlin..... More

Print this item

  Loop Help: works with 300 variables but not 400
Posted by: bpozza - Oct-19-2017, 06:21 PM - Forum: Data Science - Replies (1)

Any help will be greatly appreciated. Please let me know if you need more details to resolve and I can provide. Thank you in advance for your help...... More

Print this item

  starting with flask: code does not work
Posted by: Peter_EU - Oct-19-2017, 05:55 PM - Forum: Web Scraping & Web Development - Replies (2)

Hallowings,


I am following tutorials of https://www.youtube.com/watch?v=OuDOr32ZHE0

I started writing my first python/html document (pip insta..... More

Print this item

  must be str not int
Posted by: auting82 - Oct-19-2017, 05:47 PM - Forum: Data Science - Replies (2)

Trying to run this code, but getting the error: must be str not int?
Need some help here
Just to mention that i have tried to chabge the inputs to i..... More

Print this item

  Help with "surrounding" a string
Posted by: jsirota - Oct-19-2017, 04:59 PM - Forum: Homework - Replies (2)

Hello, I am having difficulty with a homework assignment that asks me to code a print statement where the string input gets surrounded by asterisks. T..... More

Print this item

  Click on a Drop-down button with selenium Python
Posted by: AcszE - Oct-19-2017, 04:01 PM - Forum: Web Scraping & Web Development - Replies (3)

Hello, I'm trying to click on a drop-down button in selenium pyChrome, but nothing seems to work for me Confused by clicking on the inspect optio..... More

Print this item

  Help with threading please!
Posted by: karlo_ds - Oct-19-2017, 02:42 PM - Forum: General Coding Help - Replies (2)

Hi everyone!

I try to runing multiple-task´s in Python with threading, but not run good... when i execute the script, in one web-page is working,..... More

Print this item

  Genetic Algorithm improvement
Posted by: Alberto - Oct-19-2017, 02:13 PM - Forum: Data Science - No Replies

Dear Python Experts,

What I am doing is that I am running genetic algorithm for prediction of stock prices. I include a sample of code that is in l..... More

Print this item

  Sending data over UDP
Posted by: alidaf - Oct-19-2017, 09:39 AM - Forum: Networking - Replies (3)

I've managed to code a C program to send various types of data to Matlab on another machine over UDP; char, int and double. I'm really struggling to d..... More

Print this item

  Request for simple code
Posted by: CuriousMind - Oct-19-2017, 08:14 AM - Forum: Data Science - Replies (5)

Dear Users,

I would like to request some help in some research work. My goal is to write data from an xls file to a text file (the text file is gen..... More

Print this item

  Speed up for loop
Posted by: icbruzzler - Oct-19-2017, 07:39 AM - Forum: General Coding Help - Replies (2)

Hello,
is there an alternative method to get the following code snippet faster?

var_refp.size contains 60001 elements, ground freq can change and ..... More

Print this item

  [Python / BS4] How to Scrape
Posted by: digitalmatic7 - Oct-19-2017, 07:36 AM - Forum: Web Scraping & Web Development - Replies (9)

I'm new to programming and am having trouble scraping with BS4.

I'm webmaster for a popular website (can't share it here, but it uses Disqus comme..... More

Print this item

  Circular Object Recognition - Help me, please!
Posted by: vinix123 - Oct-19-2017, 04:15 AM - Forum: Data Science - Replies (1)

Hello guys. I'm trying to build a program that can identify the points I marked in the image below. The program is attached. I wanted a way to identif..... More

Print this item

  Trouble with simple roulette game
Posted by: chadandersen1 - Oct-19-2017, 03:49 AM - Forum: General Coding Help - Replies (9)

[spoiler]
[python]
import random
print("Welcome to my Online Roulette game!")
print("Your starting balance is $50, or 5000 tokens.")
## Sets star..... More

Print this item

  Command line inputs not printing to Log File
Posted by: ijosefson - Oct-19-2017, 03:15 AM - Forum: Homework - Replies (1)

Requirement: print out the command line prompts the user enters into a log file.
Problem: line 38, the prompts don't seem to write to the log file.
..... More

Print this item

  Free keys and coupons, sales
Posted by: metulburr - Oct-19-2017, 01:13 AM - Forum: Bar - Replies (91)

This thread is for giving away game keys.


Euro Truck Simulator
First person who responds gets the key

Note this is the first one, and the tit..... More

Print this item

  qutebrowser v1.0.0 released
Posted by: dvs1 - Oct-18-2017, 11:57 PM - Forum: News and Discussions - No Replies

"Completely rewritten configuration system which ignores the old config file. See link:qute://help/configuring.html[] for details."

"QtWebEngine: Spe..... More

Print this item

  Python Launcher's list of recent files
Posted by: dvs1 - Oct-18-2017, 11:50 PM - Forum: News and Discussions - No Replies

On macOS you can right-click the "Python Launcher" icon on the Dock
and the context menu will have a list of recently launched files.
Where is this ..... More

Print this item

  CSV reader : save the content into a list
Posted by: econmajor - Oct-18-2017, 09:08 PM - Forum: General Coding Help - Replies (4)

I want to read a csv file and save the content in a list call 'data'. The following reads the data but do not save a list with the content.

..... More

Print this item

  Can someone help me please
Posted by: jamshaid1997 - Oct-18-2017, 09:05 PM - Forum: Homework - Replies (3)

Hi i was wondering if someone could explain and help me Develop a Python function which either returns the float square of its parameter x if the para..... More

Print this item

  How to start... with anything :'(
Posted by: Peter_EU - Oct-18-2017, 07:33 PM - Forum: General Coding Help - Replies (4)

Hallo,

I am writing this because it's 9 PM, I have been sitting on me arse since morning and I have not done anything right today. I am frustrated ..... More

Print this item

  How can I make faster that code
Posted by: BlueEva00 - Oct-18-2017, 02:53 PM - Forum: Homework - Replies (1)

Hello everyone! The problem Im experiencing with this exercise is that I should make it faster. But i dont know how to do it.
The thing is: I have to..... More

Print this item

  Tricky estimating three models and creating a table: regression
Posted by: HellinPython - Oct-18-2017, 02:36 PM - Forum: Homework - Replies (1)

I'm fairly new to Python, so I don't know how to upload the working file, but I have done a lot of regressions, plots and graphs before this part, bu..... More

Print this item

  Error getting HTTP 200 response with requests.get while wget works fine
Posted by: sonicblind - Oct-18-2017, 02:24 PM - Forum: Networking - No Replies

Hi,

I am struggling with smc-python library - frontend to Stonegate API.

..... More

Print this item

  What does ''''true ....'''' mean???
Posted by: wuming79 - Oct-18-2017, 02:16 PM - Forum: General Coding Help - Replies (8)

Hi,

I saw a code that started as follows

''''true
export OPT='-u"
.
.
.
exec python2.7 $OPT "$0" $FLG "$@"
'''

I can't tell that the ''..... More

Print this item

  Heuns method in Python
Posted by: auting82 - Oct-18-2017, 01:46 PM - Forum: Data Science - No Replies

Hi I am testing some ready made code in python and comapring forward eueler method and Heuns method.
Since Heuns method is more precise, the full bl..... More

Print this item

  Would you unit test __init__ method?
Posted by: kilthar - Oct-18-2017, 12:04 PM - Forum: General Coding Help - Replies (1)

Hi,

I am learning unit testing.
The principle I am trying to adopt is to unit test only incoming queries for returned value and incoming commands ..... More

Print this item

  Palindrome
Posted by: mp3909 - Oct-18-2017, 12:02 PM - Forum: General Coding Help - Replies (3)

[python]def isStringPalindrome(string):

rString=''
def reverse(string):
index=len(string)
while index>0:
rString=rString+st..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Please guide me to comple... 47 minutes ago pbkurd Larz60+ General Codin...
  [solved] re.split issue 4 hours ago paul18fr DeaD_EyE General Codin...
  New to python and coding Yesterday, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... Yesterday, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
  Help with Serial.write in... 11-12, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
Most views
  The best Prog... 578949
  Tutorial Requ... 510387
  Web Scraping ... 441965
  Newbie with P... 385987
  New Users Int... 376979
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+ 12108
buran 8195
snippsat 7388
deanhystad 6909
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Bamboo Today
TomTMH Yesterday
pbkurd Yesterday
Gichardaxora Yesterday
cc123 Yesterday

User Panel Messages

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