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,299
» Latest member: matt
» Forum threads: 38,796
» Forum posts: 175,893

Full Statistics

Online Users
There are currently 41 online users.
» 1 Member(s) | 38 Guest(s)
Bing, Google, Ninja2112

Latest Threads
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
2 hours ago
» Replies: 3
» Views: 92
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
8 hours ago
» Replies: 1
» Views: 59
My regex function is not ...
Forum: General Coding Help
Last Post: perfringo
Yesterday, 08:47 AM
» Replies: 3
» Views: 134
best way to learn python
Forum: News and Discussions
Last Post: ichsanputr
Yesterday, 04:40 AM
» Replies: 6
» Views: 3,196
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
Nov-25-2025, 02:50 AM
» Replies: 6
» Views: 262
PyQt5 - Get a parameter f...
Forum: GUI
Last Post: deanhystad
Nov-24-2025, 02:18 PM
» Replies: 5
» Views: 146
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 100
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Nov-21-2025, 06:15 AM
» Replies: 4
» Views: 1,531
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Nov-20-2025, 02:10 PM
» Replies: 2
» Views: 184
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-20-2025, 06:48 AM
» Replies: 0
» Views: 89

 
  Impossible error
Posted by: DeadCthulhuWaitsDreaming - May-25-2019, 02:54 AM - Forum: Web Scraping & Web Development - Replies (1)

Ok, to start, this code WORKED perfectly fine:
[python]
from flask import Flask, render_template
from random import randint
from math import floor
imp..... More

Print this item

  Access my webpage and download files from Python
Posted by: Pedroski55 - May-25-2019, 01:19 AM - Forum: Web Scraping & Web Development - Replies (7)

I have a godaddy webpage. I don't use it much. Mainly just for trying things out.

I have managed enough PHP to get files uploaded to my webhost fro..... More

Print this item

  Tutorial on while and for loops
Posted by: SheeppOSU - May-24-2019, 11:14 PM - Forum: Tutorial Requests and Submissions - Replies (1)

For and while loops are great ways to repeat and action or perform an action for a purpose other than repeating
First off, while loops. A while loop ..... More

Print this item

  diagnosing break not working
Posted by: Skaperen - May-24-2019, 11:09 PM - Forum: General Coding Help - Replies (3)

i have this code in a large loop:[code] for retry in range(128):

... lots of code to set up a cloud API call, do the call, and scan the ..... More

Print this item

  Beginner needs a little help with flashcard program
Posted by: Chrislw324 - May-24-2019, 11:08 PM - Forum: General Coding Help - Replies (1)

I'm making a flashcard program. Right now, I'm storing the questions and answers in separate lists. It works as is, but I want to add the option to st..... More

Print this item

  Tutorial for making a "choose a path" game
Posted by: SheeppOSU - May-24-2019, 10:52 PM - Forum: Tutorial Requests and Submissions - Replies (1)

First off, when making one of these, I think that the player should be able to choose which game they want to play. I think the games should be displa..... More

Print this item

  [Pygame] colliding with lines
Posted by: SheeppOSU - May-24-2019, 10:13 PM - Forum: Game Development - No Replies

i was making a another game before this but decided to take a little break from that game. I am at my grandmas for the summer and wanted to make a lit..... More

Print this item

  Printing List in one line
Posted by: bharat_s579 - May-24-2019, 10:06 PM - Forum: General Coding Help - Replies (6)

Am new to coding. i write a program to print output in a list
[python]
numb = [1, 2, 3 , 4 , 5 , 6 , 7, 22 ]
print ([a for a in numb if a < 7])
[..... More

Print this item

  Changing Number Format
Posted by: moby - May-24-2019, 08:52 PM - Forum: General Coding Help - Replies (4)

I'm strictly a hardware type and am caught in a conundrum trying to capture data from my oscilloscope.
I know nothing about Python, but found a worka..... More

Print this item

  Error Message -
Posted by: Akainu - May-24-2019, 08:40 PM - Forum: Data Science - Replies (2)

Hi,

I have just completed my python with finance coding, but unfortunately, there is an error. I tried so many times to solve the issue, hope you ..... More

Print this item

  list index out of range
Posted by: mcgrim - May-24-2019, 08:37 PM - Forum: Homework - Replies (2)

I am converting a list of times and dates taken from a file into european time.
The conversion function seems to do its job, but when I go and print..... More

Print this item

  common code, def a function vs exec() a string
Posted by: Skaperen - May-24-2019, 08:37 PM - Forum: General Coding Help - Replies (7)

in a long loop i have a big series of tests, some being multi-level nested if statements that do breaks to break out of that long loop. they are loca..... More

Print this item

  name of exception for exit()
Posted by: Skaperen - May-24-2019, 05:58 PM - Forum: General Coding Help - Replies (2)

when exit() is called, it's really raising a special exception that does not dump anything. i'd like to capture this exception but i c..... More

Print this item

  Why do i have invalid syntax on a line after print, i see no error ?
Posted by: iofhua - May-24-2019, 05:10 PM - Forum: General Coding Help - Replies (5)

[python]
main_site = ['mayo', 'ketchup', 'mustard', 'milk', 'eggs']
off_site = ['cocoa', 'flour', 'salt', 'bread', 'butter']
purchases = ['ketchup'..... More

Print this item

  getting index
Posted by: ThinleyJimmyDorji - May-24-2019, 04:34 PM - Forum: General Coding Help - Replies (2)

Hello,
help me get the index of each letters of the string below.


a='GTCCGTTTAGAAGGTTT'
I tried the following but what..... More

Print this item

  Generate unique random numbers from different lists
Posted by: Takeshio - May-24-2019, 04:30 PM - Forum: General Coding Help - Replies (5)

Hi Guys,

My objective is to select 5 unique random numbers from a range of numbers inside a list, prior to storing them inside a final list. These..... More

Print this item

  Python Script Spawned by Cron or Systemd doesn't write files..?
Posted by: johnnyrobot - May-24-2019, 04:05 PM - Forum: General Coding Help - Replies (2)

Hi all,

I've written a Raspberry Pi application (Ubuntu Mate) that's essentially a timed camera. Every 30 seconds, it snaps an image and writes it ..... More

Print this item

  Finding average in dictionary using for loop
Posted by: Rae - May-24-2019, 03:33 PM - Forum: Homework - Replies (4)

So I'm a super newbie in python, and I'm taking a course right now and this is my homework. I'm supposed to get the average using a for loop, and I kn..... More

Print this item

  Grabbing a value from one python script into another
Posted by: nickayres - May-24-2019, 12:39 PM - Forum: General Coding Help - Replies (3)

Hi,
Very new to Python and trying to figure out how I can get the value from a variable in one script into another.

I have a python script called..... More

Print this item

  how to code this for GPU?
Posted by: adamG - May-24-2019, 12:05 PM - Forum: General Coding Help - Replies (1)

Hello,

I am a complete beginner in GPU programming.

I have the following piece of code that I have been running in parallel on CPUs.

[pytho..... More

Print this item

  Tkinter classes
Posted by: Gupi - May-24-2019, 11:27 AM - Forum: GUI - Replies (8)

Hello everyone.

I'm sorry to bother y'all with my stupid questions, but I just can't get some simple stuff and hours of search doesn't help me. :(..... More

Print this item

  sieve of eratosthenes implementation
Posted by: sunny_awesome - May-24-2019, 11:17 AM - Forum: General Coding Help - Replies (9)

Can anyone provide me a simple implementation of sieve of eratosthenes algorithm ? I'm finding it hard to understand

Print this item

  Find the second largest number
Posted by: DarkCraftPlayz - May-24-2019, 09:31 AM - Forum: General Coding Help - Replies (8)

The task is to find the second largest number in an array.
For eg
INPUT: 5
1, 4, 5, 5, 3
OUTPUT: 4

I tried the following code, but it sh..... More

Print this item

  Exchange Quotes
Posted by: heiner55 - May-24-2019, 06:32 AM - Forum: Code sharing - Replies (7)

Quotes from iextrading.com:

[python]#!/usr/bin/python3
import requests

tic = "ibm"
url = "https://api.iextrading.com/1.0/stock/" + tic + "/quo..... More

Print this item

  problem to add precision, recall and f1-score
Posted by: edys - May-24-2019, 02:33 AM - Forum: Data Science - Replies (7)

Please, i confused to add precision, recall and f1-score.
i need to solve for my final project regarding this URL reference on https://github.com/am..... More

Print this item

  Why call import twice?
Posted by: Winfried - May-23-2019, 08:49 PM - Forum: General Coding Help - Replies (5)

Hello,

I'm learning about TclTk, and was wondering why the tkintter module is imported twice:
..... More

Print this item

  socket.gaierror: [Errno -2] Name or service not known
Posted by: seokangwoo99 - May-23-2019, 07:53 PM - Forum: Networking - Replies (5)

Hello, I am new to this forum.
I'm a cybersec Student and i found some code from the internet i try to modify it and try to execute it but it end up ..... More

Print this item

  logical error for loop
Posted by: mcgrim - May-23-2019, 07:24 PM - Forum: Homework - Replies (8)

This is the list I am working with:

2015-01-25 14:05:41.274647 70
2015-01-25 14:08:05.036915 2070
2015-01-25 14:10:05.536604 70
20..... More

Print this item

  Histogram and text file.
Posted by: pawlo392 - May-23-2019, 07:10 PM - Forum: Homework - Replies (1)

I have such a text file:
breast-cancer
I want to create a histogram and any other grap..... More

Print this item

  Read ASCII File
Posted by: pyth0nus3r - May-23-2019, 06:54 PM - Forum: General Coding Help - Replies (3)

I am trying to read a file which contains ASCII values in the format: 072069076076079.

I can copy every three characters manually and pass it to th..... More

Print this item

  sys.path miss dist-packages in a virtual env.
Posted by: chomwitt - May-23-2019, 06:26 PM - Forum: General Coding Help - Replies (2)

I created a virtual enviroment with venv.

And i noticed that :
$ python3
>>> import sys
>>> sys.path
['', '/usr/lib/python35.zip', '/usr/lib/py..... More

Print this item

  Boto 3 and Mongo DB
Posted by: zatlas1 - May-23-2019, 05:40 PM - Forum: General Coding Help - Replies (2)

Is MongoDB supported by Boto 3?

Print this item

  How to get separate versions?
Posted by: noodlesnoah - May-23-2019, 05:11 PM - Forum: General Coding Help - Replies (3)

I was wondering how to get seperate python versions like the ones in the pictures I have python 3.6.4 downloaded.

[img]https://imgur...... More

Print this item

  help me remember the name of a Book . . .
Posted by: sailboatevanmoser - May-23-2019, 04:00 PM - Forum: News and Discussions - Replies (3)

Hi: I am looking for a book that I had read a while back. It tracks the experience of a development team. The book’s title is something like “1035 b..... More

Print this item

  [numpy]add a value to an array
Posted by: elmismo999 - May-23-2019, 03:54 PM - Forum: Data Science - Replies (1)

I have an array created with numpy

arr10=np.random.randint(0,10,(4,4))
If for example I want to sum to each element the value 1..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  silent deployment Python ... 2 hours ago Bummibaer Larz60+ News and Disc...
  Proposal for PEP 8 hours ago matt Gribouillis News and Disc...
  My regex function is not ... Yesterday, 08:47 Moltar1997 perfringo General Codin...
  best way to learn python Yesterday, 04:40 dutch ichsanputr News and Disc...
  data fetching for indian ... 11-25, 02:50 drakhsin Pedroski55 Web Scraping ...
  PyQt5 - Get a parameter f... 11-24, 14:18 Ninja2112 deanhystad GUI
  Brazil Python Help to aut... 11-21, 20:30 MileHigh303 MileHigh303 Jobs
  My goal to be hired worki... 11-21, 06:15 GnomeSweetGnome mamta25 News and Disc...
  [SOLVED] [BeautifulSoup] ... 11-20, 14:10 Winfried Winfried Web Scraping ...
  How to Implement Real-Tim... 11-20, 06:48 ankitsharma32 ankitsharma32 Web Scraping ...
  How to put my game loop i... 11-20, 04:59 temlotresid6 SledgeNE Game Developm...
Most views
  The best Prog... 579377
  Tutorial Requ... 512409
  Web Scraping ... 442294
  Newbie with P... 386343
  New Users Int... 380339
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+ 12111
buran 8196
snippsat 7390
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
matt Yesterday
Divyakrishnan071 Yesterday
ichsanputr Yesterday
nicos18 11-25
Moltar1997 11-25

User Panel Messages

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