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,283
» Latest member: alexferrina
» Forum threads: 38,793
» Forum posts: 175,876

Full Statistics

Online Users
There are currently 36 online users.
» 1 Member(s) | 32 Guest(s)
Bing, Google, AOL, lovedeep

Latest Threads
LhanePulse
Forum: General Coding Help
Last Post: Gichardaxora
1 hour ago
» Replies: 0
» Views: 5
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: snippsat
10 hours ago
» Replies: 5
» Views: 109
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 47
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Nov-21-2025, 06:15 AM
» Replies: 4
» Views: 1,482
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Nov-20-2025, 02:10 PM
» Replies: 2
» Views: 139
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-20-2025, 06:48 AM
» Replies: 0
» Views: 62
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:59 AM
» Replies: 11
» Views: 6,065
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:46 AM
» Replies: 2
» Views: 4,298
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Nov-19-2025, 08:34 PM
» Replies: 3
» Views: 365
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Nov-19-2025, 05:03 AM
» Replies: 1
» Views: 204

 
  How to get the selected item from Listbox and convert it to int?
Posted by: Jionni - Feb-15-2020, 10:35 PM - Forum: GUI - Replies (8)

Hi,

how can I convert the selected item from Listbox and convert into integer for using in my code?

Here is the code:

[img]C:\Users\PC\Deskto..... More

Print this item

  Could These Two Threads Of Mine Be Moved To This Forum ?
Posted by: eddywinch82 - Feb-15-2020, 10:28 PM - Forum: General Coding Help - Replies (1)

Hi there,

Could the following two Threads of mine, be moved to this Forum please, by a Moderator, if that is okay ?

This Thread :-

https://py..... More

Print this item

  How does this code know to use the key of a dictionary
Posted by: renveg - Feb-15-2020, 08:13 PM - Forum: General Coding Help - Replies (1)

I am going though Automate the boring stuff with Python and in a section manipulating strings, there is this script:

[python]# this program is an i..... More

Print this item

  Please Help with My First Python Attempt
Posted by: deep_12 - Feb-15-2020, 07:02 PM - Forum: Homework - Replies (3)

Write a program to simulate a simple guessing number game , specify how many guesses the user can do , and then ask them for a guess. Then it prints o..... More

Print this item

  Running problem
Posted by: cristipatras - Feb-15-2020, 07:02 PM - Forum: General Coding Help - Replies (4)

Does anyone know why my code returns only a few directories, instead of the needed output?

Print this item

  Function Help
Posted by: DansterTx - Feb-15-2020, 06:50 PM - Forum: Homework - Replies (5)

Hey everyone,

I'm a graduate student taking a Python course, and while the professor is great, his homework is unreasonably difficult. Seeing as ..... More

Print this item

  Read Data from Serial Port
Posted by: PA3040 - Feb-15-2020, 06:28 PM - Forum: General Coding Help - Replies (3)

Hi Team

I am new to this forum

I need to Read Data from Serial port and put data to Entry Widgest
This is the code that I used
It display un..... More

Print this item

  Dynamically Deleting Widget
Posted by: smabubakkar - Feb-15-2020, 04:51 PM - Forum: GUI - Replies (1)

Hi I am using Tkinter and creating Labels ad Combobox Dynamically based on a query result.

While running the query again, i need to delete the wid..... More

Print this item

  Extracting Data from Calendar
Posted by: AgileAVS - Feb-15-2020, 04:22 PM - Forum: Web Scraping & Web Development - Replies (2)

I have a problem in scraping data from website which do not change the URLs when we choose data from ceratin dates with the calendar option given on t..... More

Print this item

  Creating local variables from a string
Posted by: peckjonk - Feb-15-2020, 04:08 PM - Forum: General Coding Help - Replies (2)

I need to create local variables whose names come from an externally specified string. I tried

vars()[varname] = somevalue
This co..... More

Print this item

  How to calculate time in seconds
Posted by: rajeshE - Feb-15-2020, 03:28 PM - Forum: General Coding Help - Replies (1)

Hi,
I have time as below:


t1: 2020-02-13T11:16:30-05:00
t2: 2020-03-13T11:01:56-31:00
t3: 2020-03-13T11:02:42-00:00
I want..... More

Print this item

  manipulation of string in Text widget
Posted by: Stauricus - Feb-15-2020, 02:52 PM - Forum: GUI - Replies (2)

hello everybody
I'm trying to create a simple text editor in Tkinter, to help building HTML pages.
I just write things in the text area, and use but..... More

Print this item

  Returning a value from a tkinter.button call
Posted by: markr0804 - Feb-15-2020, 02:28 PM - Forum: GUI - Replies (4)

I am trying to code without using globals. I am using the tkinter.button (see below) to enter some numbers into a variable. Ideally I want the tkinter..... More

Print this item

  pygame setting borders?
Posted by: thepelican3 - Feb-15-2020, 02:08 PM - Forum: Game Development - Replies (2)

# I am having trouble with the borders around the castle walls?
[python]
import pygame

pygame.init() #Initialize

#============================..... More

Print this item

  Error With Reading Files In Directory And Calculating Values
Posted by: chascp - Feb-15-2020, 01:14 PM - Forum: General Coding Help - Replies (2)

I'm trying to run the following code which carries out some calculations on files I have data for with functions for CentreOfMass and SED.
[python]
..... More

Print this item

  Youtube video transcripts
Posted by: jehoshua - Feb-15-2020, 05:33 AM - Forum: General Coding Help - Replies (3)

Have been testing a Python API that can fetch transcripts from Youtube videos - https://github.com/jdepoix/youtube-transcript-api

Some test scripts..... More

Print this item

  How to make the function to prompt the user repeatedly till he enters a no
Posted by: sbabu - Feb-15-2020, 04:43 AM - Forum: Homework - Replies (3)

[python]def ck_no(prompt):
while True:
try:

lst = (2,3,4)
if prompt not in lst:
..... More

Print this item

  Please help me fix this code
Posted by: huytuong010101 - Feb-15-2020, 04:37 AM - Forum: General Coding Help - Replies (1)

Sorry because my English is not good
My code has big bug here:
When I have only code at line 54 - 55, it will execute line 54, then execute line ..... More

Print this item

  printing a list contents without brackets in a print statement
Posted by: paracelx - Feb-15-2020, 01:45 AM - Forum: General Coding Help - Replies (1)

Using python 3 I am trying the following code. I would like to change the last two lines of the code where the print(*uninvlist, sep=", " is in the di..... More

Print this item

  how can I improve the code to get it faster?
Posted by: aquerci - Feb-15-2020, 12:34 AM - Forum: General Coding Help - Replies (2)

Hi guys,

my script must read a text file and produce an output. it works quite well but a piece of his code is very slow (it because of some instru..... More

Print this item

  Rounding exercise: UnboundLocalError: local variable referenced before assignment
Posted by: Drone4four - Feb-15-2020, 12:29 AM - Forum: Homework - Replies (5)

This is for a personal challenge, not for school.

The task at hand:

Write a function which collects a list of floats as well as a boolean optio..... More

Print this item

  why tuple instead of list
Posted by: Skaperen - Feb-14-2020, 11:50 PM - Forum: News and Discussions - Replies (12)

why should i want to create a tuple instead of a list? or a frozenset instead of a set? or a namedtuple instead of a dictionary? are they more effi..... More

Print this item

  ISNULL/NVL alternative in filter
Posted by: SIARO - Feb-14-2020, 09:32 PM - Forum: Data Science - No Replies

Hi,
I'm very new in data science and Python,so i'm trying now to learn by playing with the data
i'm trying to select data from data Frame where th..... More

Print this item

  How to send an error message
Posted by: Ewilliam51 - Feb-14-2020, 08:18 PM - Forum: General Coding Help - Replies (1)

I'm not quite sure how to structure this question so I'm going to use an example
Let's say I have a program that asks a user for a number which I am ..... More

Print this item

  pygame, help with making a function to detect collision between player and enemy.
Posted by: Kris1996 - Feb-14-2020, 07:51 PM - Forum: Game Development - Replies (3)

Hi guys.

I am making a game in pygame, where you play as a little spaceship and your mission is to shoot aliens. I am struggling on making a functi..... More

Print this item

  How do i turn my program into a .exe
Posted by: julio2000 - Feb-14-2020, 07:35 PM - Forum: General Coding Help - Replies (1)

Hey,
So I've created this program that I want to release to other people. But I would like to change it to a .exe, instead of a .py. Does someone kno..... More

Print this item

  Accessing method as function object
Posted by: ClassicalSoul - Feb-14-2020, 04:22 PM - Forum: General Coding Help - Replies (2)

Hi,

How do you access a class method as a function object (not a function call)? The context is that I would like to use the help() function on ran..... More

Print this item

  Escaping '$' in pymongo
Posted by: raulp2301 - Feb-14-2020, 03:48 PM - Forum: General Coding Help - No Replies

I am searching for a specific value in my mongo cursor. If it is found then i want to extract the substring after the search value

The below code w..... More

Print this item

  Python time
Posted by: SamAnw - Feb-14-2020, 03:37 PM - Forum: General Coding Help - Replies (1)

Hello everyone,

I need to create a program that converts an input like this one:

1m and 45s
10m,10s
32s, and 12h
76h
1s

Into an output li..... More

Print this item

  Clicking on element not triggering event in Selenium Python (Event Key is not in data
Posted by: dkaeloredo - Feb-14-2020, 03:18 PM - Forum: Web Scraping & Web Development - Replies (2)

I have a problem of whenever i want to click on an button element it does not trigger the event. In my case I am trying to add an item to the cart. A ..... More

Print this item

  Python Type error!
Posted by: SamAnw - Feb-14-2020, 01:41 PM - Forum: General Coding Help - Replies (4)

Hello!

I've been working on this program and I don't know why, but there seems to be a problem with it...

[python]
txt = "Prob05.in.txt"
msg =..... More

Print this item

  got SyntaxError while building simple function
Posted by: zarize - Feb-14-2020, 10:06 AM - Forum: General Coding Help - Replies (2)

Hi guys,

How can i set up simple function to unpack a list?

i was trying to:

def list_to_string(x):
    x = *x
    return x
..... More

Print this item

  file tree recursion generator
Posted by: Skaperen - Feb-14-2020, 07:44 AM - Forum: Code sharing - Replies (7)

this is a generator (usable as an iterator) that generates individual file system object paths in the tree topped by the given apex path. i plan the ..... More

Print this item

  Please help! Akai APC20 midi controller script
Posted by: versusliveact - Feb-14-2020, 05:37 AM - Forum: General Coding Help - No Replies

Hi There!

I would like to change the remote script of my Akai APC 20 midi controller in Ableton ,I really rarely use the cue level,and it could cha..... More

Print this item

  Python time
Posted by: SamAnw - Feb-14-2020, 05:22 AM - Forum: Homework - Replies (1)

Hello

I have to write a python program that changes an input file like the following:

1 hour 20 minutes

30 minutes and 2 hours

into an out..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  LhanePulse 1 hour ago Gichardaxora Gichardaxora General Codin...
  data fetching for indian ... 10 hours ago drakhsin snippsat Web Scraping ...
  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...
  Help with running PvZ Fus... 11-20, 04:46 Barber532 SledgeNE Game Developm...
  Graph Interpolate Difficu... 11-19, 20:34 Tuurbo46 deanhystad General Codin...
  link variable to exc bloc... 11-19, 05:03 Astrobert Gribouillis General Codin...
  PyQt6 QWidgets and system... 11-18, 18:47 stevecoh1 Axel_Erfurt GUI
Most views
  The best Prog... 579254
  Tutorial Requ... 512101
  Web Scraping ... 442185
  Newbie with P... 386294
  New Users Int... 379592
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+ 12109
buran 8196
snippsat 7390
deanhystad 6915
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
alexferrina Today
MattCarters Yesterday
drakhsin Yesterday
MileHigh303 11-21
ndx101 11-21

User Panel Messages

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