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,297
» Latest member: ichsanputr
» Forum threads: 38,795
» Forum posts: 175,887

Full Statistics

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

Latest Threads
best way to learn python
Forum: News and Discussions
Last Post: ichsanputr
18 minutes ago
» Replies: 6
» Views: 3,168
My regex function is not ...
Forum: General Coding Help
Last Post: Pedroski55
5 hours ago
» Replies: 1
» Views: 65
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Yesterday, 11:51 AM
» Replies: 1
» Views: 60
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
Yesterday, 02:50 AM
» Replies: 6
» Views: 235
PyQt5 - Get a parameter f...
Forum: GUI
Last Post: deanhystad
Nov-24-2025, 02:18 PM
» Replies: 5
» Views: 124
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 89
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Nov-21-2025, 06:15 AM
» Replies: 4
» Views: 1,521
[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,141

 
  What is the correct syntax for list items that need to contain a quotation mark, etc?
Posted by: KaisoArt - Sep-13-2019, 06:42 PM - Forum: General Coding Help - Replies (7)

A script I have has this line:

items = ['1/16"', '1/8"','1/4"','3/8"','1/2"','3/4"','1-1/2"','1/6"','1:1']


This displays as 1/16", ..... More

Print this item

  Loop Details
Posted by: ichabod801 - Sep-13-2019, 06:41 PM - Forum: Fundamentals - Replies (5)

Often in computer programming you want to do the same thing over and over again. You may want to do it a certain number of times, or for certain items..... More

Print this item

  creating a list from lists of lists
Posted by: ridgerunnersjw - Sep-13-2019, 04:31 PM - Forum: General Coding Help - Replies (1)

Can someone tell me how to sum values across lists of lists....For example I have a list of a list that is 2x4....It in turn is contained in a list th..... More

Print this item

  Can anyone recommend a step by step guide to building an app
Posted by: PyNovice - Sep-13-2019, 04:12 PM - Forum: News and Discussions - Replies (9)

Hello all,
this is my first post.
I'm studying for the Microsoft MTA in Python Fundamentals.
The course covers the basics but does not t..... More

Print this item

  How do I write class objects to a file in binary mode?
Posted by: Exsul1 - Sep-13-2019, 03:39 PM - Forum: General Coding Help - Replies (7)

How do I write class instances to a file in binary mode? When I try to run this code,

[python]from npc_gen import NPC

n1 = NPC()


a = open(..... More

Print this item

  Convert VBA to Python
Posted by: uservaf - Sep-13-2019, 03:18 PM - Forum: General Coding Help - Replies (6)

Please could someone convert the code below for me?
I need to convert VBA to Python

==============================================================..... More

Print this item

  No hold('on') in pycharm python 3.7
Posted by: Vedant - Sep-13-2019, 01:51 PM - Forum: Data Science - No Replies

Hello,

I am working with Python 3.7 in Pycharm.

I was trying to plot two curves in one plot by using package matplotlib.pyplot
I was trying to ..... More

Print this item

  list all the different options that are filled in
Posted by: oog70 - Sep-13-2019, 01:44 PM - Forum: Homework - Replies (1)

Hi,

Im currently working on an assignment and we got some template files which we have to use to data mine a csv file.
And we are struggling with ..... More

Print this item

  Scrollbars on canvas
Posted by: Christina - Sep-13-2019, 01:22 PM - Forum: GUI - Replies (2)

Hello,
I'm trying to create a image viewer in tkinter. I have problem with scrollbars in my app. I want horizontal and vertical scrollbars next to im..... More

Print this item

  Saving images
Posted by: Christina - Sep-13-2019, 12:55 PM - Forum: GUI - Replies (10)

Hello,
I'm trying to create a image viewer in tkinter. I have problem with saving the images. On canvas I created an image. For save I don't use Phot..... More

Print this item

  Problem with Basic Rock Paper Scissors code
Posted by: BirinderSingh - Sep-13-2019, 12:21 PM - Forum: General Coding Help - Replies (3)

Guys I just started with python a couple days back, and today finally sat down to write a code for Rock Paper Scissors.

The code abruptly ends afte..... More

Print this item

  Save all values to pandas of multiple classes
Posted by: jenniferruurs - Sep-13-2019, 12:10 PM - Forum: General Coding Help - No Replies

I have Multiple classes and this classes have all some variables inside it. I want to save all values of these variables with column name to a pandas ..... More

Print this item

  unable to flash micropython to esp 32: open serial error
Posted by: apollo - Sep-13-2019, 11:33 AM - Forum: Bar - Replies (3)

dear community

issue: unable to flash micropython to esp 32: open serial error, please try again. hope to connect internet and try again.
..... More

Print this item

  Pythone module for dynamic rule execution
Posted by: hemal07yc - Sep-13-2019, 10:50 AM - Forum: General Coding Help - Replies (1)

Which module in Python can be used for dynamic rule execution?
1. "re" module
2. "regex" module
3. "pyregex" module
4. None

Print this item

  Output of Python code
Posted by: hemal07yc - Sep-13-2019, 10:39 AM - Forum: General Coding Help - Replies (5)

what is the output of the following code in Python 3.x environment?

x = "abcdef"
i = "i"
while i in x:
print(i, end=" ")

Options:
1. abcdef
2. E..... More

Print this item

  scrolldown + beautifulsoup?
Posted by: zarize - Sep-13-2019, 09:54 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi guys,

Is it possible to extract all data from the site, while site is showing more results each time when user is scrolling down?

I would lov..... More

Print this item

  pygame.mixer.init() devicename issue
Posted by: wanhr - Sep-13-2019, 08:33 AM - Forum: Game Development - Replies (2)

Hi everyone:
I tried to use pygame to play a sound file on the raspberry pi with respeaker hat on it. I tried to specify the respeaker's ac101 to be ..... More

Print this item

  Python Coding Issue!
Posted by: ankitdixit - Sep-13-2019, 08:33 AM - Forum: General Coding Help - Replies (3)

Hello Everyone,

Why Is The “Pass” Keyword Used For In Python?

>>> if x==0:
pass
else:
print "x!=0"

Anyone tell me why ..... More

Print this item

  convert list of dict to dict of array of list with pop up
Posted by: kk230689 - Sep-13-2019, 06:38 AM - Forum: General Coding Help - Replies (1)

Hi All,

Need help to convert the input dictionary to o/p below format

input:
[python][{'type': 'cummulative', 'environment': None, 'doma..... More

Print this item

  Problems with displaying a 15x15 Complex Matrix
Posted by: JoelFooCJ - Sep-13-2019, 04:36 AM - Forum: General Coding Help - Replies (5)

[b]Hi, I am trying to show a 15x15 matrix containing complex numbers as its elements. However, the output terminal isn't displaying it correctly in th..... More

Print this item

  after py2 EOL, is it safe to repoint python?
Posted by: Skaperen - Sep-13-2019, 04:12 AM - Forum: News and Discussions - Replies (6)

after python2's EOL, is it "safe" to change the plain "python" command to point to or run python3? anyone know when it was changed from python1 to py..... More

Print this item

  finding the closest floating point number in a list
Posted by: Skaperen - Sep-13-2019, 02:27 AM - Forum: General Coding Help - Replies (17)

i am not asking for anyone to code this for me. [b]i'm just wanting to know if there might be an already existing tool out there to do this[/b..... More

Print this item

  negative indices in lists
Posted by: Ironword - Sep-13-2019, 01:02 AM - Forum: Homework - Replies (6)

This isn't technically homework, as I'm working my own way through through a beginner's Python book rather than taking a course, but it seemed like th..... More

Print this item

  Can read files in command prompt but not IDE
Posted by: Exsul - Sep-12-2019, 11:39 PM - Forum: General Coding Help - Replies (2)

Why does writing files work in both the command prompt and PyCharm (IDE)...

a = open("workfile.txt", "w")

a.close()
but read..... More

Print this item

  rounding floats to a number of bits
Posted by: Skaperen - Sep-12-2019, 11:13 PM - Forum: General Coding Help - Replies (2)

the round() function works on rounding to a number of decimal digits. is there a way to round a float to a number of bits?

Print this item

  code works at command line but not in .py
Posted by: ridgerunnersjw - Sep-12-2019, 10:58 PM - Forum: General Coding Help - Replies (4)

Good evening....
Can someone please tell me what I am doing wrong....I test this out on the CLI and it seems to work yet when I have it in my .py scr..... More

Print this item

  My file was empty at once
Posted by: smnfouladi - Sep-12-2019, 09:11 PM - Forum: General Coding Help - Replies (4)

hi

i work by pytho3.6
I was writing code that turned off my laptop.When I turned it on, all my code was cleared and my file was empty.
Still my f..... More

Print this item

  Copy same doubled matched words
Posted by: kozaizsvemira - Sep-12-2019, 05:31 PM - Forum: General Coding Help - Replies (2)

I've been trying to figure this one out, but all I could find is people having problem with duplication instead of adding it as a feature.
I have th..... More

Print this item

  for loops
Posted by: metulburr - Sep-12-2019, 04:57 PM - Forum: Fundamentals - Replies (1)

Basics

The for loop is a generic sequence iterator in Python: it can step through the items in any orde..... More

Print this item

  Distance between two locations when their latitude and longitudes are given
Posted by: dcardonaa - Sep-12-2019, 04:56 PM - Forum: Homework - Replies (4)

Hello! I'm trying to run this program and it works until Ellip_earth_proj_plane function.

[python]print('This is a program to find distance betwee..... More

Print this item

  Need explain about the code
Posted by: ap111 - Sep-12-2019, 02:52 PM - Forum: General Coding Help - Replies (2)

i worte this code:

[python]import time

def search_lst(L, x):
mone = 0
for i in range(len(L)-1):
if x == L[i]:
re..... More

Print this item

  looking for for loop thread
Posted by: metulburr - Sep-12-2019, 11:54 AM - Forum: Board - Replies (10)

I was gong to write up a for/while loop tutorial because we actually dont have one on here. I was going to link to key points of things that already h..... More

Print this item

  Data mining code help
Posted by: oog70 - Sep-12-2019, 09:34 AM - Forum: Homework - Replies (1)

Dear,

for an assignment we need to data mine some data from an excel sheet provided. Also we got some code provided by our professor.
Me and my t..... More

Print this item

  Python for finance
Posted by: Not_skilled_at_all - Sep-12-2019, 09:27 AM - Forum: Homework - Replies (11)

Hei, after several tries, I haven't managed to find the answer, or run my code.

My problem is to find a specific interest rate for an annual annuit..... More

Print this item

  nested for loop dilemma 2
Posted by: YoungGrassHopper - Sep-12-2019, 08:55 AM - Forum: General Coding Help - Replies (12)

Hey guys.

So what I have today is another nested loop issue.
Program needs to ask a user for a number and save as variable (num)
I then need to deter..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  best way to learn python 18 minutes ago dutch ichsanputr News and Disc...
  My regex function is not ... 5 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...
Most views
  The best Prog... 579352
  Tutorial Requ... 512298
  Web Scraping ... 442259
  Newbie with P... 386328
  New Users Int... 380140
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
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
ichsanputr Today
nicos18 Yesterday
Moltar1997 Yesterday
arthurlouiss Yesterday
LewisByday Yesterday

User Panel Messages

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