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,983
» Latest member: lydiaharrison12
» Forum threads: 38,734
» Forum posts: 175,571

Full Statistics

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

Latest Threads
SECURE HACKER EXPERTISE R...
Forum: General Coding Help
Last Post: lydiaharrison12
21 minutes ago
» Replies: 0
» Views: 8
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: Pedroski55
2 hours ago
» Replies: 5
» Views: 128
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Yesterday, 03:05 AM
» Replies: 4
» Views: 2,027
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 440
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Sep-30-2025, 12:21 AM
» Replies: 2
» Views: 1,077
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,140
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 807
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 3,093
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,541
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 9,130

 
  How to keep looping until the user input is valid ?
Posted by: KyawMyo - Jun-08-2019, 08:02 AM - Forum: General Coding Help - Replies (12)

[python]

def get_valid_input(value):
while True:
try:
return float(input(value))
except ValueError:
..... More

Print this item

  I am trying to send message in youtube live chat
Posted by: stylohunk - Jun-08-2019, 07:43 AM - Forum: General Coding Help - Replies (1)

Here I am trying to send message in youtube live chat.

Until login everything is working fine.

But I am unable to draw message in chat box and s..... More

Print this item

  any code around to do float in base 16?
Posted by: Skaperen - Jun-08-2019, 04:08 AM - Forum: News and Discussions - Replies (3)

is there any code around to do float in base 16 or do i need to write some?

Print this item

  Get complex query
Posted by: bhojendra - Jun-08-2019, 03:23 AM - Forum: Web Scraping & Web Development - No Replies

I am using flask. And trying to handle the get request something like:

GET /items?filter[where][foo]=foo

And it seems a bit much difficult to ..... More

Print this item

  update while running
Posted by: Skaperen - Jun-08-2019, 03:00 AM - Forum: News and Discussions - Replies (1)

i have a very long running script that i would like to have update itself when the script file it was started with is updated. i could certainly chec..... More

Print this item

  my latest function
Posted by: Skaperen - Jun-08-2019, 12:51 AM - Forum: News and Discussions - Replies (2)

i just wrote a function and will be writing tests for it soon. i wrote it because i frequently need this. it mimics open() (by callin..... More

Print this item

  Was this forum made with Flask?
Posted by: SheeppOSU - Jun-08-2019, 12:19 AM - Forum: Board - Replies (3)

It suddenly struck my mind and I wanted to ask. If it wasn't made with Flask, what was it made w/ and who made it? Thanks in advance for feeding my cu..... More

Print this item

  Doors ng rest api
Posted by: jyanez - Jun-07-2019, 10:05 PM - Forum: News and Discussions - Replies (2)

Any body has something about Doors ng rest api?

new developer

Please!

Print this item

  Help with environment path variables
Posted by: kuharido - Jun-07-2019, 09:18 PM - Forum: General Coding Help - No Replies

I searched high and mighty on stackoverflow and still can't find what the issue is or how to fix it, found some threads that mentioned the $PYTHONHOME..... More

Print this item

  Choose from dropdown list and then do something?
Posted by: Selfiatus1 - Jun-07-2019, 06:40 PM - Forum: GUI - Replies (2)

Hi, there is an error with my if function... It just woun't write to the document when I press the button "Generate".
I only want to write to a docum..... More

Print this item

  Manipulating Checkboxes
Posted by: teflon - Jun-07-2019, 06:36 PM - Forum: GUI - Replies (8)

Hi, I have this Checkboxes, İmage

any combination can be selected, and each checkbox selected results in a d..... More

Print this item

  Count the number of items in a nested list
Posted by: iofhua - Jun-07-2019, 06:36 PM - Forum: General Coding Help - Replies (2)

[python]
inv = {
'cash': ['gold', 'gold'],
}

print(inv['cash'])

print(' '.join(inv['cash']))

print(' '.count(inv['cash']))

[/python..... More

Print this item

  Name error
Posted by: Uzomaza - Jun-07-2019, 06:31 PM - Forum: General Coding Help - Replies (2)

Hi!
Why dont work the var1 code?

[python]
import turtle
from tkinter import *
import tkinter.messagebox

wn = turtle.Screen()
wn.setup(650,..... More

Print this item

  Volunteer Python Developers -- Python 2D Tank MMO
Posted by: Ntech - Jun-07-2019, 06:01 PM - Forum: Jobs - Replies (3)

Hey there! I'm looking for volunteers to collaborate with me in the creation and improvement of a new Python 2D Tank MMO. Since I..... More

Print this item

  Removing extra space
Posted by: sumncguy - Jun-07-2019, 05:04 PM - Forum: Homework - Replies (4)

The print output annoys me. Big Grin
My question is how do I get rid of the space betwen the the dollar sign and value.
I did try to search the ..... More

Print this item

  Web scraping using bs4
Posted by: klllmmm - Jun-07-2019, 04:53 PM - Forum: Web Scraping & Web Development - Replies (3)

I'm trying to scrap data from UN sanctions list web site.

[python]import requests
from bs4 import BeautifulSoup

r = requests.get("https://scsa..... More

Print this item

  Login system
Posted by: cardozo6060 - Jun-07-2019, 04:38 PM - Forum: Homework - Replies (2)

Hi! i developed a "basic" program to school project and need to be done sunday but im having a problem i dont know how to use a login system there is ..... More

Print this item

  Python if statement docx wount work
Posted by: Selfiatus1 - Jun-07-2019, 03:53 PM - Forum: General Coding Help - Replies (5)

Hi,

I cant get this code to work, I just want a button to be pressed, calling definition "helloCallBack" and from it a series of
if statements, wher..... More

Print this item

  How do I get the last element?
Posted by: DaytonJones - Jun-07-2019, 02:33 PM - Forum: General Coding Help - Replies (9)

Newbie question....


I have a ResultSet that looks like:

ResultSet({'('system', {'host': 'my.host.net'})': [{'time': '2019-05-30T00:00:00Z', 'd..... More

Print this item

  Pandas find the most often rows
Posted by: dervast - Jun-07-2019, 01:44 PM - Forum: General Coding Help - Replies (1)

Hi.
I have a panda Data Frame like the one below
[python]
smallData=pd.DataFrame(np.array([[1,2,3,4,5],[4,5,6,7,8],[1,2,3,3,3],[1,2,2,3,3],[1,2,3,5..... More

Print this item

  iterating over 2 iterators
Posted by: Skaperen - Jun-07-2019, 01:04 PM - Forum: General Coding Help - Replies (2)

what was the name of that function that would iterate over 2 iterators and let you do:

   for x,y in iter2(xx,yy):
where xx and yy are 2 it..... More

Print this item

  sending email from admin to user in django
Posted by: anjana - Jun-07-2019, 12:01 PM - Forum: Web Scraping & Web Development - No Replies

i want to send email from admin to user .my code get no reverse match error.
views.py

def emails(request,id):
subject = 'leave confir..... More

Print this item

  RPi GPIO Flashing LED
Posted by: nickayres - Jun-07-2019, 10:11 AM - Forum: General Coding Help - Replies (1)

The code works a treat in that button pressed LED ON button pressed again LED OFF. What I am trying to do is get the LED to flash when it is ON rather..... More

Print this item

  Using executemany to import the data
Posted by: Sandy7771989 - Jun-07-2019, 09:57 AM - Forum: General Coding Help - Replies (1)

Hi All,

I'm using the below code to port the data from MySQL to postgreSQL database and it is working fine, but it's rather slow though( more than ..... More

Print this item

  Random graph and reachable items
Posted by: Gribouillis - Jun-07-2019, 07:19 AM - Forum: Code sharing - Replies (1)

I've been playing with generators to write a function that yields the reachable elements in a graph. It is an example of filling a container while ite..... More

Print this item

  where is a pattern?
Posted by: Skaperen - Jun-07-2019, 05:07 AM - Forum: General Coding Help - Replies (8)

i have a string pattern (such as '[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9].[0-9][0-9][0-9]') that may be in another string. i'm still baffled by th..... More

Print this item

  Scroll Bars going backwards
Posted by: goofygoo - Jun-07-2019, 02:30 AM - Forum: GUI - Replies (2)

I am having difficulty with my scroll bars sliding backward. Code below.

[python]user_dict = {"J Schmo":["SSM", "CPP"], "B Kezzi":["SM", "OBSIC"], ..... More

Print this item

  List Issue
Posted by: Batman - Jun-06-2019, 10:05 PM - Forum: General Coding Help - Replies (3)

So, this is interesting...

It prints Pam 205.36 2 times

what happened to Bruce 37.95?

[python]
class check:
payee = ''
amount = 0...... More

Print this item

  nltk dictionary GUI
Posted by: joe_momma - Jun-06-2019, 09:18 PM - Forum: Code sharing - Replies (2)

This a gui dictionary enter a word, press submit and it outputs name with tag and
the definition. I put in 2 checkbuttons for examples and lemma name..... More

Print this item

  xticks
Posted by: mcgrim - Jun-06-2019, 08:54 PM - Forum: Data Science - Replies (5)

I am trying to put in a bar graph some values stored in a file and the times when these values took place.
The bar chart looks like the way I want as..... More


Attached Files

.txt   moredates.txt (Size: 75.2 KB / Downloads: 7)
Print this item

  Custom timeinterval converted to hourly values using Pandas?
Posted by: SinPy - Jun-06-2019, 07:51 PM - Forum: Data Science - Replies (1)

Hello!

I have a timeserie of values where every week is devided into 4 parts, each representing 42 hours.
Is it possible to convert this to hourly..... More

Print this item

  Issues downloading Pyperclip
Posted by: hawkstone - Jun-06-2019, 07:03 PM - Forum: News and Discussions - Replies (1)

Hey People,

Apparently, my editor is not reading where I have downloaded pyperclip. I keep getting the conflicted message that pyperclip has been ..... More

Print this item

  Thread update emails
Posted by: micseydel - Jun-06-2019, 06:35 PM - Forum: Board - Replies (4)

I thought I recalled at one point that a reply to a thread would generate emails for all the participants. I haven't seen this behavior in a while, al..... More

Print this item

  Help with finding correct topic in Python learning
Posted by: yahya01 - Jun-06-2019, 04:40 PM - Forum: General Coding Help - Replies (1)

Hi

I am starting at zero with Python. I need to know which topics in Python do I need to study to understand below two statements. The confusing pa..... More

Print this item

  pyglet freezing
Posted by: pfaber11 - Jun-06-2019, 02:03 PM - Forum: Game Development - Replies (1)

Hi just starting piglet and when I try and run this code it freezes but If I press a key on the keyboard it moves on a frame here's the code could som..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  SECURE HACKER EXPERTISE R... 21 minutes ago lydiaharrison12 lydiaharrison12 General Codin...
  Parse Markdown / get the ... 2 hours ago SpongeB0B Pedroski55 General Codin...
  Error: cannot mix str wit... Yesterday, 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...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
  My First App 09-27, 10:53 BCopeland64 carlbidwell Code Review
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
Most views
  The best Prog... 577451
  Tutorial Requ... 501058
  Web Scraping ... 441079
  Newbie with P... 385149
  New Users Int... 369751
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
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
lydiaharrison12 Today
kyleconor797 Yesterday
miriamwilliam Yesterday
Davidkiplimo Yesterday
Joliekeva Yesterday

User Panel Messages

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