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,312
» Latest member: elizabethlittle6258
» Forum threads: 38,801
» Forum posts: 175,923

Full Statistics

Online Users
There are currently 27 online users.
» 0 Member(s) | 24 Guest(s)
Bing, Google, AOL

Latest Threads
No new line from print in...
Forum: General Coding Help
Last Post: noisefloor
Today, 10:06 AM
» Replies: 11
» Views: 323
Python compiler
Forum: General Coding Help
Last Post: noisefloor
Today, 09:50 AM
» Replies: 1
» Views: 78
Trading Risk management s...
Forum: Code sharing
Last Post: NeoQuant
Yesterday, 07:34 PM
» Replies: 5
» Views: 95
Standard template Data En...
Forum: Code Review
Last Post: Hosthubac
Yesterday, 05:51 PM
» Replies: 0
» Views: 55
Python Online Compiler
Forum: News and Discussions
Last Post: ichsanputr
Yesterday, 07:39 AM
» Replies: 3
» Views: 11,136
Python is not working on ...
Forum: General Coding Help
Last Post: noisefloor
Nov-28-2025, 10:44 AM
» Replies: 4
» Views: 213
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-28-2025, 04:44 AM
» Replies: 8
» Views: 737
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: mamta25
Nov-27-2025, 04:48 AM
» Replies: 6
» Views: 7,842
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Nov-26-2025, 09:58 PM
» Replies: 3
» Views: 216
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
Nov-26-2025, 03:53 PM
» Replies: 1
» Views: 172

 
  Conversion of Time Duration in seconds in python
Posted by: jdevansh99 - Jun-05-2018, 05:12 PM - Forum: General Coding Help - No Replies

import re
match = re.match(r'PT(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?', 'PT7M37S')
(hours, minutes, seconds) = [ int(n or 0) for n in match.groups()..... More

Print this item

  Combine images using Pillow and Python
Posted by: GMA - Jun-05-2018, 04:26 PM - Forum: General Coding Help - Replies (2)

Hello Python community :)

I'm trying to write a python script using Pillow :
count files ( png images ) number create an image for every 64 image..... More

Print this item

  TreeviewWith CheckBox
Posted by: issac_n - Jun-05-2018, 03:56 PM - Forum: GUI - Replies (1)

I wanted to create a Treeview with check box. so far i only found the tk can support TreeView but no check box.
sample as link ..... More

Print this item

  Youtube page scraping
Posted by: ChipsSlave - Jun-05-2018, 02:01 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello all,

The page I would like to scrape is a user videos page on youtube. All of the video titles in the page are nested under the same xpath wh..... More

Print this item

  Strange the name of the file is changed automaticaly
Posted by: sylas - Jun-05-2018, 01:15 PM - Forum: General Coding Help - Replies (3)

Hi all! I find very strange that the name of the file is changed automatically. What becomes the first name I gave to my file: about_main.py
I think ..... More

Print this item

  Updating An Existing Word and
Posted by: captainflint - Jun-05-2018, 12:24 PM - Forum: Homework - Replies (1)

This how we do it program:

Updating an existing word:
If the user selects to update a word they will be asked to input the word they would like to..... More

Print this item

  csv module writing extra line
Posted by: ChipsSlave - Jun-05-2018, 12:10 PM - Forum: General Coding Help - Replies (3)

Hello all,

I have written a small script which is supposed to read from the file the last row and return it as a starting point for a while loop to..... More

Print this item

  speech converstions on live audio stream
Posted by: raady07 - Jun-05-2018, 11:22 AM - Forum: General Coding Help - Replies (1)

I want to throw the speech to text conversions on my console when the user has stopped speaking. For it I installed speech_recognition module and pyth..... More

Print this item

  [split] regular expression
Posted by: metalray - Jun-05-2018, 11:09 AM - Forum: Homework - Replies (2)

I have a regex question as well :)

Got a few more dates that I need to find and look for mainly of the
following format: 26 August 1982 05 Mar 19..... More

Print this item

  Need Help to understand class
Posted by: Roshan - Jun-05-2018, 08:50 AM - Forum: General Coding Help - Replies (5)

I write this code & run perfect

[python]
class Person:
def __init__(self, name, age):
self.name = name
self.age = age

def myfunc..... More

Print this item

  how to decode UTF-8 in python 3
Posted by: oco - Jun-05-2018, 08:44 AM - Forum: General Coding Help - Replies (3)

Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:57:36) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more i..... More

Print this item

  How to implement APScheduler in Python 3.6?
Posted by: PrateekG - Jun-05-2018, 08:38 AM - Forum: Web Scraping & Web Development - Replies (4)

Hi All,

I have written a python script (myfile.py) which scrapes the product related data from an e-commerce site and store in mysql db.

Now I w..... More

Print this item

  Unable to fetch product url using BeautifulSoup with Python3.6
Posted by: PrateekG - Jun-05-2018, 06:29 AM - Forum: Web Scraping & Web Development - Replies (6)

Hi Expert,

I have fetched data from html using below code-
[python]
def get_soup(url):
response = requests.get(url)
html = response.con..... More

Print this item

  Timers In python
Posted by: ShruthiLS - Jun-05-2018, 05:20 AM - Forum: General Coding Help - Replies (3)

Hi Everyone,

I am new to python,and wanted to Implement the Timer concept In python. I tried with threading module but don't know how t..... More

Print this item

  Send File and Text Via UDP
Posted by: ammoti - Jun-04-2018, 11:17 PM - Forum: General Coding Help - No Replies

Hi i am making a chat application which can send text message and file
I can send but receieveing part I can not make it .
Can you help me.

This..... More

Print this item

  Is it possible to create a variable with the name of an output of another variable
Posted by: Panda - Jun-04-2018, 11:03 PM - Forum: General Coding Help - Replies (8)

I'm making a console application, and i want to create a feature where you can create your own command if you feel like it's needed. Here is my code:
..... More

Print this item

  Sending different color codes in python at certain times
Posted by: Kimzer - Jun-04-2018, 09:05 PM - Forum: General Coding Help - Replies (4)

Hi all..

Looking for some help here.
Using below script.
Trying to add the following functions:

I want the pir sensor to basically do nothing ..... More

Print this item

  'Hot thread'
Posted by: tjnichols - Jun-04-2018, 08:14 PM - Forum: Board - Replies (1)

Good afternoon. What does it mean when a discussion is marked this way? I looked it up but all I found went back to 2016 when the changes were being d..... More

Print this item

  Start checking for geology reports
Posted by: tjnichols - Jun-04-2018, 08:11 PM - Forum: General Coding Help - Replies (1)

Ok Lars60+ please know that everyone here and in Denver are signing your praises and sending you huge thank yous for helping me.

Ok - that leads me..... More

Print this item

  Is there any keyboard shortcut to run code from Visual Studio Code?
Posted by: python300 - Jun-04-2018, 07:33 PM - Forum: Bar - Replies (3)

I know you can right click in the editor and select Run Python File in Terminal.
Or I can right click the name of the python file from left panel and..... More

Print this item

  Adding two lists
Posted by: KaleBosRatjes - Jun-04-2018, 07:15 PM - Forum: General Coding Help - Replies (5)

So I'm trying to add two lists together with integers in the lists. In both lists there are strings with "null". I want to add the two lists together,..... More

Print this item

  getting variables from an user input on python
Posted by: iskander - Jun-04-2018, 07:04 PM - Forum: General Coding Help - No Replies

how to get user input in variables for exemple :
user input :
name@domain.com:password:year
resault:
[python]
name = ""
domain = "" ..... More

Print this item

  Help of multiple threads using cpython
Posted by: LM19952012 - Jun-04-2018, 05:10 PM - Forum: Data Science - Replies (7)

I recently tried to use a lot of threads (i.e. about 100) to run the same python function. That function will call an external library written in C. H..... More

Print this item

  Diferentes Versões do Python em um mesmo Projeto
Posted by: lordslypher - Jun-04-2018, 04:59 PM - Forum: Homework - Replies (3)

ola, sou iniciante em Python e estou com um problema, estou usando a versão 3.4 para desenvolver a interface, mas preciso utilizar uma biblioteca que ..... More

Print this item

  Low end chromebook $99
Posted by: Larz60+ - Jun-04-2018, 04:41 PM - Forum: News and Discussions - No Replies

Microcenter has refurbished HP Chromebook 11
for $99.
[output] Intel® Celeron® N2840 Processor 2.16GHz
Google Chrome OS
2GB RAM
16..... More

Print this item

  How to split string
Posted by: SriRajesh - Jun-04-2018, 04:33 PM - Forum: Data Science - Replies (5)

Hi,

I have below dataFrame and I want search and take the numeric value left side to specified substring.

My data:
[python]
df2 = pd.DataFrame..... More

Print this item

  I need to MODIFY this to list all of the s3 buckets in my account , right now it will
Posted by: quantum_1 - Jun-04-2018, 03:48 PM - Forum: General Coding Help - No Replies

Python script , I need to MODIFY this to list all of the s3 buckets in my account , right now it will LIST what is in a specific bucket


[python]i..... More

Print this item

  Calling a Facebook API
Posted by: gpbarsky - Jun-04-2018, 02:55 PM - Forum: General Coding Help - No Replies

Good morning. I am new in Python and in Facebook.

I need to build a python program to retrieve some information from facebook. Data I have is:
Bus..... More

Print this item

  Modifications on cursor
Posted by: Zyxcel314 - Jun-04-2018, 01:14 PM - Forum: GUI - Replies (3)

Hi,

I would like to modify the size and the color of the cursor in my root window in Tkinter.

After a few research, I tried this:
[python]
rac..... More

Print this item

  IF statement trouble
Posted by: eoins - Jun-04-2018, 08:25 AM - Forum: General Coding Help - Replies (6)

Hi, I am fairly new to python and coding in general. I was trying to practice a bit by making a cook book sort of thing and I can't figure out what I ..... More

Print this item

  web scrap currency
Posted by: ikeen - Jun-04-2018, 07:51 AM - Forum: Web Scraping & Web Development - Replies (6)

good day
please help me
i wanna get some data about currency rates from our local site "http://nationalbank.kz/?furl=cursFull&switch=rus".
and can'..... More

Print this item

  How to call a variable declared in a function in another python script
Posted by: lravikumarvsp - Jun-04-2018, 02:49 AM - Forum: General Coding Help - Replies (2)

Hi,

I had two python scripts r1.py and r2.py
In r1.py I used a variable named "test" in a function and I want to use this in r2.py.
I tried but n..... More

Print this item

  If-Else statements issue
Posted by: sergeyovic - Jun-03-2018, 08:52 PM - Forum: General Coding Help - Replies (2)

hello there ,
first of all i'm all new to this language , and all my knowledge this far in computing comes from C .

my issues are with this code line..... More

Print this item

  regular expression
Posted by: bluefrog - Jun-03-2018, 08:03 PM - Forum: Homework - Replies (1)

Hi

How can one escape the "\" character?

Escaping the "^" character works fine

[python]>>> import re
>>> re.findall(re.escape("^"), "^hello^..... More

Print this item

  Why do we use __main__ when we can call a function directly?
Posted by: Dave7Swift - Jun-03-2018, 07:53 PM - Forum: General Coding Help - Replies (5)

Hi Everyone,

I am a newbie to Python. As I was learning Functions, I am not able to understand the difference between calling the function directly..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  No new line from print in... Today, 10:06 Lou noisefloor General Codin...
  Python compiler Today, 09:50 NeoQuant noisefloor General Codin...
  Trading Risk management s... Yesterday, 19:34 NeoQuant NeoQuant Code sharing
  Standard template Data En... Yesterday, 17:51 Hosthubac Hosthubac Code Review
  Python Online Compiler Yesterday, 07:39 alexmaxwell1 ichsanputr News and Disc...
  Python is not working on ... 11-28, 10:44 lary_p noisefloor General Codin...
  Help with Serial.write in... 11-28, 04:44 racingsubby Larz60+ General Codin...
  Can I develop a live vide... 11-27, 04:48 mtrkhan mamta25 Web Scraping ...
  silent deployment Python ... 11-26, 21:58 Bummibaer Larz60+ News and Disc...
  Proposal for PEP 11-26, 15:53 matt Gribouillis News and Disc...
  My regex function is not ... 11-26, 08:47 Moltar1997 perfringo General Codin...
Most views
  The best Prog... 579514
  Tutorial Requ... 512998
  Web Scraping ... 442378
  Newbie with P... 386405
  New Users Int... 381794
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+ 12113
buran 8196
snippsat 7394
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
elizabethlittle6258 Today
StepanVoronin Today
QABOB Today
adityaN Today
NeoQuant Yesterday

User Panel Messages

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