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,296
» Latest member: nicos18
» Forum threads: 38,795
» Forum posts: 175,886

Full Statistics

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

Latest Threads
My regex function is not ...
Forum: General Coding Help
Last Post: Pedroski55
2 hours ago
» Replies: 1
» Views: 50
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Yesterday, 11:51 AM
» Replies: 1
» Views: 55
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
Yesterday, 02:50 AM
» Replies: 6
» Views: 230
PyQt5 - Get a parameter f...
Forum: GUI
Last Post: deanhystad
Nov-24-2025, 02:18 PM
» Replies: 5
» Views: 121
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 81
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Nov-21-2025, 06:15 AM
» Replies: 4
» Views: 1,518
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Nov-20-2025, 02:10 PM
» Replies: 2
» Views: 170
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-20-2025, 06:48 AM
» Replies: 0
» Views: 80
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:59 AM
» Replies: 11
» Views: 6,137
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:46 AM
» Replies: 2
» Views: 4,320

 
  May i ask how i can stop my coding running
Posted by: christing - Oct-03-2019, 05:17 AM - Forum: General Coding Help - Replies (4)

Good Day, may i ask how can i stop my code running. I am using if else statement.

try:
A = "111111"

if A == "123456":
print('OK')
else:..... More

Print this item

  Custom commands
Posted by: JohnnyCoffee - Oct-02-2019, 11:49 PM - Forum: Web Scraping & Web Development - Replies (4)

How do I customize commands to be executed by the terminal ?

Print this item

  if condition inside try / except -- how to??
Posted by: ridgerunnersjw - Oct-02-2019, 09:40 PM - Forum: General Coding Help - Replies (1)

Good afternoon...
Can someone please show me what I am missing. Basically I want to take an argument in and check if it exists within a tuple of val..... More

Print this item

  Converting a patterned string or text into excel table
Posted by: soup1987 - Oct-02-2019, 09:35 PM - Forum: General Coding Help - Replies (1)

Dear All,

This is my first post and im still very new to Python so i will appreciate all the patience and help i can get!

I have made a webscrap..... More

Print this item

  Comapring two files
Posted by: usman88 - Oct-02-2019, 08:11 PM - Forum: General Coding Help - Replies (7)

Hi, i have 2 txt files which i want to compare.

File 1 has only dates.
File 2 has dates and some text.

All i want to do is out put in File 3 i..... More

Print this item

  Display Selected Image from Directory and Resize it
Posted by: EchoLi - Oct-02-2019, 06:54 PM - Forum: GUI - No Replies

Hi, I am working on a Tkinter GUI now. I would like to select an image from the directory and resize it. Now I am having trouble displaying it, even t..... More

Print this item

  Minimizing the CMD window during code execution
Posted by: Shaswat - Oct-02-2019, 06:35 PM - Forum: General Coding Help - Replies (1)

Hi,
Attaching the snippet of my code.

Objective: I am trying to ping a website for certain interval of time (User defined). If the URL works, it w..... More

Print this item

  Where to look to find the most recent Python grammar
Posted by: allusernametaken - Oct-02-2019, 05:31 PM - Forum: General Coding Help - Replies (9)

Hello, Python world!

I recently started studying Python with the book called 'Python Crash Course' by Eric Matthes.
It has been very entertaining ..... More

Print this item

  Explain range in this code
Posted by: RavCOder - Oct-02-2019, 03:30 PM - Forum: General Coding Help - Replies (4)

Hi,
I created this code to calculate a product used two input of user :

[python]
factor = int(input())
multiple = int(input())

for p in range..... More

Print this item

  Windows can't find installed packages
Posted by: TSheets13 - Oct-02-2019, 02:18 PM - Forum: General Coding Help - Replies (7)

I am trying to install some packages to my Windows Python 3.7

I downloaded BeautifulSoup, and then from the Windows cmd prompt, in the directory wh..... More

Print this item

  Combinaison
Posted by: Goodsayan - Oct-02-2019, 02:04 PM - Forum: General Coding Help - Replies (1)

Hello,

I'm new in python. I try to generate combinations of objects and calculate sums to characterize them.
A little confused, so I quickly give ..... More

Print this item

  Understanding program blocks
Posted by: newbieAuggie2019 - Oct-02-2019, 01:45 PM - Forum: General Coding Help - Replies (2)

Hi!

Sorry for bothering you with this probably stupid question, but I can get really stuck with some little non-vital doubts.

If I understand [b..... More

Print this item

  open, read and replace a string in a file
Posted by: Reims - Oct-02-2019, 01:30 PM - Forum: General Coding Help - No Replies

Hi,
i want to read a file, and replace a certain value.

i don t know the exact string value but i know what is before and after this value

for ..... More

Print this item

  Calculating with float
Posted by: TSheets13 - Oct-02-2019, 12:08 PM - Forum: General Coding Help - Replies (1)

This code fails:

import math
r=input("r=")
h=input("h=")
V=math.pi*h*r**2
print (V)
V=math.pi*h*r**2
TypeError: ca..... More

Print this item

  Access to the elements of a dictionnary
Posted by: Reims - Oct-02-2019, 11:44 AM - Forum: General Coding Help - Replies (1)

Hi,
i have the following json file contained in a file named file.conf
and i Need to replace the value of ENDPOINT witn something else


[pytho..... More

Print this item

  Doing calculation with ascii file
Posted by: Mike - Oct-02-2019, 11:09 AM - Forum: General Coding Help - Replies (5)

Hello!
I have file named DATA.TXT which contains:

[output]colA,colB
324,234
346,341
147,346
234,567
368,405
344,643
235,235
236,567[/outpu..... More

Print this item

  Problem with 'and' in 'if' statement
Posted by: CoderMan - Oct-02-2019, 09:14 AM - Forum: General Coding Help - Replies (3)

Hello,

I'm trying to make a function that returns true if a list contains at least one of many predetermined letters in it. The code is as follows:..... More

Print this item

  Too Stupid to Code
Posted by: RazerNismo - Oct-02-2019, 07:01 AM - Forum: Bar - Replies (14)

Look... I'm after a brutally honest view on if people think that coding is for a certain level of education.. Perhaps a problem solving mind or someth..... More

Print this item

  How i can judge my code
Posted by: christing - Oct-02-2019, 04:16 AM - Forum: General Coding Help - Replies (16)

Below is the code i write for confirm my string single position.

the purpose i write the code is i want single confirm my string(111111111110000000..... More

Print this item

  Read data, recognize trends and send report
Posted by: vin0001 - Oct-02-2019, 02:01 AM - Forum: Data Science - Replies (1)

I would like to use Python and Machine learning to read time stamped data set and analyze its trend behaviour to generate a report if any outliers.
..... More

Print this item

  Error could not convert string to float:
Posted by: deadendstreet - Oct-02-2019, 01:06 AM - Forum: Homework - Replies (4)

Hey all,

Ive been working on creating plots and am trying to convert a column that had $4,312.00 as an Object instead of a float or integer.

In ..... More

Print this item

  How to point a subdomain to run applications using virtualenv on ec2 (AWS)
Posted by: JohnnyCoffee - Oct-02-2019, 12:43 AM - Forum: Networking - No Replies

I added an ec2 instance (ubuntu server) in aws, installed python3.7, virtualenvs, pointed ec2's elastic ip to a subdomain, entered virtualenvs and mad..... More

Print this item

  Question
Posted by: pythonprogrammer - Oct-02-2019, 12:09 AM - Forum: General Coding Help - Replies (2)

[python]
Card = collections.namedtuple('Card',['rank','suit'])

class FrenchDeck:
ranks = [str(n) for n in range(2,11)] + list('JQKA')
su..... More

Print this item

  In linear time, find the maximum sum of all possible contiguous subarrays
Posted by: Exsul1 - Oct-01-2019, 11:18 PM - Forum: General Coding Help - Replies (29)

Per an interview question offered as a "question of the day," how would you find, given an array of integers, the maximum sum of all possible contiguo..... More

Print this item

  local variable 'doc' referenced before assignment
Posted by: Kriti - Oct-01-2019, 10:29 PM - Forum: GUI - Replies (3)

Hi All,
I am trying to write the python GUI Code which creates the PDF based on user input and the excel sheet.It takes the user input create the doc..... More

Print this item

  I dont understand bytes in python.
Posted by: blackknite - Oct-01-2019, 10:20 PM - Forum: General Coding Help - Replies (3)

Everything is so confusing here, ie:
[python]>>> z = b'\x93\x39\x02\x49\x83\x02\x82\xf3\x23\xf8\xd3\x13'
>>> list(z)
[147, 57, 2, 73, 131, 2, 130, ..... More

Print this item

  Running multiple Shell with No latency
Posted by: law - Oct-01-2019, 09:48 PM - Forum: General Coding Help - No Replies

Hello Friend,
I recently wrote 6 scripts which are scrapping data from an online site.Each script is different and performs a given task in a certain..... More

Print this item

  DHT11 output to website problem
Posted by: cjdock - Oct-01-2019, 08:29 PM - Forum: General Coding Help - No Replies

Hello folks,
I don't program very much but can usually figure out code issues but no luck with this.
So, I have a raspberry pi and the humidity/temp..... More

Print this item

  comparing integers and fractions
Posted by: tantony - Oct-01-2019, 08:22 PM - Forum: General Coding Help - Replies (3)

I'm writing a script to get data from an aviation website. The problem is that, sometimes the value of 'visibility' could be an integer such as 10, b..... More

Print this item

  How do I make zip() append a value to a key?
Posted by: rm197 - Oct-01-2019, 06:18 PM - Forum: General Coding Help - Replies (1)

I have these two arrays:

arr1 = ['sub1', 'sub1', 'sub2', 'sub1', 'sub1', 'sub2']
[python]arr2 = [1.9 , 2.2 , 9.1 , 7.3 , 4...... More

Print this item

  AttributeError: 'top_block_sptr' object has no attribute 'change_param_1'
Posted by: Hadad - Oct-01-2019, 05:00 PM - Forum: General Coding Help - Replies (2)

In this exercise, I am using a python webserver to change the parameters' values inside my configuration file (.ini file). To do that I have a few wid..... More

Print this item

  Need help urgent
Posted by: fireablade - Oct-01-2019, 05:00 PM - Forum: General Coding Help - Replies (1)

Im trying to run a file, however i keep getting this error

"InstaPy Version: 0.6.4
._. ._. ._. ._. ._. ._. ._. ._. ._.
Workspace in use..... More

Print this item

  download from python
Posted by: mpellegrini - Oct-01-2019, 04:18 PM - Forum: Networking - Replies (6)

I'd like to download a file present at follow link

But the follow code python get me the error "HTTPError: Unauthorized":

import urllib.request
url ..... More

Print this item

  How does a single object see all the values inside it?
Posted by: jenniferruurs - Oct-01-2019, 03:56 PM - Forum: General Coding Help - Replies (1)

Bellow I have some code, I was wondering how it is possible that the object root looks like if I have list of object (I expect a single object)

I g..... More

Print this item

  Moving Files
Posted by: Evil_Patrick - Oct-01-2019, 03:54 PM - Forum: General Coding Help - Replies (4)

Newbie Alert

[python]
import os
import glob
import shutil

path = input('Enter folder location: ')
os.chdir(path)

try:
os.makedirs('..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  My regex function is not ... 2 hours ago Moltar1997 Pedroski55 General Codin...
  silent deployment Python ... Yesterday, 11:51 Bummibaer Larz60+ News and Disc...
  data fetching for indian ... Yesterday, 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...
  Help with running PvZ Fus... 11-20, 04:46 Barber532 SledgeNE Game Developm...
  Graph Interpolate Difficu... 11-19, 20:34 Tuurbo46 deanhystad General Codin...
Most views
  The best Prog... 579350
  Tutorial Requ... 512292
  Web Scraping ... 442233
  Newbie with P... 386326
  New Users Int... 380122
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+ 12110
buran 8196
snippsat 7390
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
nicos18 Yesterday
Moltar1997 Yesterday
arthurlouiss Yesterday
LewisByday Yesterday
Bummibaer Yesterday

User Panel Messages

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