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 25 online users.
» 0 Member(s) | 22 Guest(s)
Bing, Google, AOL

Latest Threads
If I open a file write or...
Forum: General Coding Help
Last Post: bowlofred
2 hours ago
» Replies: 5
» Views: 110
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: 511
Exponential Number Conver...
Forum: General Coding Help
Last Post: DeaD_EyE
Jan-09-2026, 08:47 PM
» Replies: 4
» Views: 454
Possible bug found, pleas...
Forum: General Coding Help
Last Post: alexajames
Jan-08-2026, 04:31 PM
» Replies: 14
» Views: 803
How to put my game loop i...
Forum: Game Development
Last Post: MarkHenry
Jan-08-2026, 12:47 PM
» Replies: 12
» Views: 7,763
Code failing to ask input...
Forum: Homework
Last Post: perfringo
Jan-08-2026, 06:35 AM
» Replies: 4
» Views: 732
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,380

 
  timeout value in subprocess
Posted by: jonesin1974 - Nov-30-2017, 08:34 PM - Forum: General Coding Help - Replies (2)

Hi,

The timeout works a treat if I hard code a value as such:[python]try: subprocess.run(['notepad.exe'], stdout=subprocess.PIPE, stderr=subprocess..... More

Print this item

  Converting an 8-bit binary to decimal WITHOUT the shortcuts
Posted by: EIA - Nov-30-2017, 06:00 PM - Forum: General Coding Help - Replies (5)

Hey everyone, I am trying to self-teach myself in python and I was wondering. Is there a way to convert an 8-bit binary to decimal without using the s..... More

Print this item

  why does the list of list replicate this way?
Posted by: hshivaraj - Nov-30-2017, 05:36 PM - Forum: General Coding Help - Replies (2)

[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

  Python 3.6 and 2003 Domain
Posted by: ajaccard - Nov-30-2017, 05:13 PM - Forum: General Coding Help - Replies (1)

Thank you in advance for any help you can offer. I apologize if this is posted under the wrong topic.

We are beginning a project in 2018 using P..... More

Print this item

  tweepy:invalid or expired token
Posted by: weareux - Nov-30-2017, 03:38 PM - Forum: General Coding Help - Replies (2)

Hello, thanks for your help, I want to find a twitter user thanks to tweepy, I have already tried to generate a new key, I've also tried with a token,..... More

Print this item

  Tic Tac Toe Game!
Posted by: lgalan90 - Nov-30-2017, 03:33 PM - Forum: Game Development - Replies (1)

I am new to python and am currently taking an online bootcamp. I am having trouble with the random input where it would not input "o", usually on my t..... More

Print this item

  error in python script (for energy meter)
Posted by: br0ken - Nov-30-2017, 02:08 PM - Forum: General Coding Help - Replies (9)

[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

  if statement and in operator problem
Posted by: bobger - Nov-30-2017, 01:08 PM - Forum: General Coding Help - Replies (5)

can i use a if statement and in operator to trigger the code [python]corb = random.randrange(3)
print('talks about it with ' + talks[corb] + ' about ..... More

Print this item

  Can't get call or subprocess functions to use space in path.
Posted by: jonesin1974 - Nov-30-2017, 01:04 PM - Forum: General Coding Help - Replies (2)

Hi there,

I'm having issues with both subprocess and call functions to accept spaces in the the file path.

I'm runni..... More

Print this item

  Trying to create a python exe for an addition problem with an odd variable
Posted by: Python_Newb - Nov-30-2017, 12:18 PM - Forum: General Coding Help - No Replies

Good morning,
New to Python for sure, but I do have VERY limited experience with it. I am trying to write a short program that solves a short simple ..... More

Print this item

  Machine learning SQL injection detection
Posted by: agocomp - Nov-30-2017, 12:13 PM - Forum: Data Science - Replies (3)

Good day, i am a post graduate student working on "Detecting and preventing SQL injection attack on a database using machine learning approach". My Ma..... More

Print this item

  open file from web
Posted by: Viesturs - Nov-30-2017, 11:55 AM - Forum: General Coding Help - Replies (1)

by

File = open('file.txt')

I can open a file.

How can I open a file from a web URL?

Print this item

  MySql and field names.
Posted by: MuntyScruntfundle - Nov-30-2017, 11:36 AM - Forum: General Coding Help - Replies (2)

Hi folks, I'm a programmer of many, many years, but not with Python, so I'm very new to the way of thinking and the syntax.

At the moment I'm strug..... More

Print this item

  Why does Function behave differently in a class vs. outside a class?
Posted by: Leaf - Nov-30-2017, 09:54 AM - Forum: General Coding Help - Replies (4)

[python]

# Why does this function behave differently in a class vs. outside a class?
class Test():
def add_person(element, lineage=[]):
..... More

Print this item

  Need help in Python script to BIND with OID(Oracle Internet Directory) Server
Posted by: kiran_j - Nov-30-2017, 06:23 AM - Forum: General Coding Help - No Replies

Hi,

I want to write python script to connect/bind to our OID(oracle internet directory) server

Server : oraoidvm.dba.com
Port : 3060

I tried..... More

Print this item

  Python syntax
Posted by: Drone4four - Nov-30-2017, 03:36 AM - Forum: General Coding Help - Replies (3)

Here is a code sample from a web framework (Django) but my questions are mostly syntax-related. Take a look at this specimen:

[python]
from djang..... More

Print this item

  Help with array smallest biggest number
Posted by: thanikos - Nov-30-2017, 12:44 AM - Forum: Homework - Replies (4)

Hello
I need some help to: User inserts 10 numbers that goes to an array, and then the program prints the smallest number, the biggest number and th..... More

Print this item

  How can python handle a stdout from bash shell by using Popen()
Posted by: ruifenghu - Nov-29-2017, 11:09 PM - 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

  GTIN code validation program not working!
Posted by: AnonDxZ - Nov-29-2017, 11:04 PM - Forum: Homework - 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

  Help Formatting Print Statement (input from 3 lists) X 2
Posted by: Hebruiser - Nov-29-2017, 11:03 PM - Forum: Homework - Replies (11)

I am working on my class project and am having some difficulty getting my print statement to format "neatly". Teacher wants it to look like this when ..... More

Print this item

  Structure and Organizing (part 8)
Posted by: metulburr - Nov-29-2017, 10:18 PM - Forum: Game Tutorials - No Replies

Back to part 7
https://python-forum.io/Thread-PyGame-Fl...ing-part-7



Ideally you should do this in the beginning from scratch. E..... More

Print this item

  Planetary Motion Simulation
Posted by: kprov - Nov-29-2017, 09:30 PM - Forum: Homework - Replies (1)

I am required to plot the orbits of the planets around the sun. So far I have been able to plot the circular orbits from my code below. However, I am ..... More

Print this item

  creating date/time stamp from dataframe values
Posted by: kiki1113 - Nov-29-2017, 09:23 PM - Forum: Homework - Replies (1)

I have a data frame that includes the following values:

Quote:Date
07/12/17

Start Time
05:00 PM
Each of these is currently stored as..... More

Print this item

  precision error
Posted by: chris64 - Nov-29-2017, 09:21 PM - Forum: General Coding Help - Replies (1)

How do I make 24/48 to equal 0.5?
My program says that it equals 0. However, if I write it as 24.0/48 then I get the correct result.

How do I chan..... More

Print this item

  Better way to create nested dictionary with defaultdict()
Posted by: x2mlh - Nov-29-2017, 08:59 PM - Forum: General Coding Help - Replies (8)

I need to loop through some JSON data (company storm data) and create a nested dictionary 4 keys deep with the first 3 keys having values of type dict..... More

Print this item

  Code for a circular wire??
Posted by: hiphopopot0mous - Nov-29-2017, 07:59 PM - Forum: Homework - Replies (11)

Hey everyone, so I'm trying to create a code for a circular wire carrying a current from which I can then apply the Biot-Savart law to. However, due t..... More

Print this item

  how do one remove whitespace from a list?
Posted by: BoaCoder3 - Nov-29-2017, 07:54 PM - 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

  How to make a dynamic variable based on input
Posted by: loltylerdowney - Nov-29-2017, 06:44 PM - Forum: Homework - 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

  Loops
Posted by: rstewart - Nov-29-2017, 06:41 PM - Forum: Homework - Replies (1)

Please help with this and try to make it as simple as possible.
Write a program to store information about the people in your class. First, it should..... More

Print this item

  Require the code for,,,,
Posted by: akg711 - Nov-29-2017, 06:22 PM - Forum: Homework - 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

  Mozilla give $170,000 to improve PyPi
Posted by: snippsat - Nov-29-2017, 05:34 PM - Forum: News and Discussions - No Replies

The PSF awarded $170,000 grant from Mozilla Open Source Program to impro[url=https://python-forum.io/thread-6583.html]..... More

Print this item

  Login a Python Web Crawler on a ASP NET (.aspx) website
Posted by: p4t3x - Nov-29-2017, 05:15 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

  How to upload the terminal on windows 10
Posted by: sylas - Nov-29-2017, 04:12 PM - Forum: Bar - Replies (17)

Hi all ! Do you know an easy way to upload the terminal, where I can type, for instance: "sudo apt-get install qt-creator" I am now on my 32 bits engi..... More

Print this item

  How to click the button automatically using python
Posted by: purnima1 - Nov-29-2017, 02:20 PM - Forum: Web Scraping & Web Development - Replies (22)

Hi Experts,
I have one web page and it has one tab "upload file" . when manually press that button screen pops up and i select excel file and then w..... More

Print this item

  Getting TypeError: list indices must be integers or slices not str
Posted by: ozzyk - Nov-29-2017, 01:33 PM - Forum: General Coding Help - Replies (10)

I want to get the lyrics for each track returned from lastfm api. If i use the method song_lyric() below, that uses the musixmatch api, directy like:..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  If I open a file write or... 2 hours 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... 522292
  Web Scraping ... 442915
  New Users Int... 388147
  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