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,974
» Latest member: Williamcaurb
» Forum threads: 38,732
» Forum posts: 175,558

Full Statistics

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

Latest Threads
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
54 minutes ago
» Replies: 2
» Views: 719
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
7 hours ago
» Replies: 6
» Views: 752
Integer Factorization Too...
Forum: Code sharing
Last Post: fosuwxb
8 hours ago
» Replies: 0
» Views: 70
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 12:59 PM
» Replies: 8
» Views: 470
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 2,849
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,249
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 8,816
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,225
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 1,177
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,481

 
  Sum of 1-100
Posted by: ClassicalSoul - Mar-02-2019, 01:38 PM - Forum: General Coding Help - Replies (2)

Hi,

I came across this and was wondering about the mechanics:

[python]
>>> x = 0
>>> r = range(1, 101)
>>> for n in r:
... x = n + x
...
>>> x
..... More

Print this item

  Toggling the Check button
Posted by: Vicolas - Mar-02-2019, 01:10 PM - Forum: GUI - Replies (4)

Please, how can I wrap and unwrap the 'wrap' attribute of the Text Widget by toggle with the check button (Word Wrap) in the sub-menu of my Menu Widge..... More

Print this item

  Using Decimal Type instead of Float
Posted by: Bytales - Mar-02-2019, 12:03 PM - Forum: General Coding Help - Replies (1)

Hy there, im new to python, just getting the gist of it. I want to build me a program, and i need decimal precision, therefore i learned that i need t..... More

Print this item

  Looking through files in explorer in order?
Posted by: stroudie2 - Mar-02-2019, 11:06 AM - Forum: General Coding Help - No Replies

Hi everyone. I'm pretty new at Python, and am struggling with something. As you can see from the image attached, I am trying to re-name all the files ..... More

Print this item

  Python Turtle and order of implementation query
Posted by: Parsleigh - Mar-02-2019, 10:13 AM - Forum: General Coding Help - Replies (2)

Hello all, first post here so hopefully this is in the right place.
Would be greatful iff someone could help me understand something, Im just startin..... More

Print this item

  Help for a beginner - Index out of range ?
Posted by: MarcM0901 - Mar-02-2019, 08:18 AM - Forum: General Coding Help - Replies (3)

Hi all,

First time here .
And i am a beginner.
I do not know if this is the right place for a question.
I am trying to find why my program is ou..... More

Print this item

  Global variables not changing
Posted by: ThemePark - Mar-02-2019, 06:55 AM - Forum: General Coding Help - Replies (3)

I've had a problem with some code where a global variable reverted back to its previous value, after a function completed, despite the variable being ..... More

Print this item

  vs code interpreter vs IDLE feature
Posted by: tsmspace - Mar-02-2019, 04:31 AM - Forum: General Coding Help - Replies (4)

I have been using IDLE for quite a while now. I don't really know it super well, but it's pretty basic.

Recently, because VS Code is featured in s..... More

Print this item

  Inserting data from python list into a pandas dataframe
Posted by: mahmoud899 - Mar-02-2019, 04:07 AM - Forum: Data Science - No Replies

I have the following files in AAMC_K.txt, AAU.txt, ACU.txt, ACY.txt, and AE.txt in a folder called AMEX. I am trying to merge these text files into on..... More

Print this item

  Python Project
Posted by: moga2003 - Mar-02-2019, 02:36 AM - Forum: Homework - Replies (2)

For my Project, we are having to create a TextAnalyzer class. This is my first try at creating anything this large, and I have confused myself.

Ri..... More

Print this item

  home work rolling average
Posted by: arcticfox286 - Mar-02-2019, 02:32 AM - Forum: Homework - Replies (1)

Write a program that computes and prints the average of numbers in a text file. You must use at least 2 functions. The program must print each numbe..... More

Print this item

  Python help w/ .txt file
Posted by: chicks4 - Mar-02-2019, 02:09 AM - Forum: Homework - Replies (2)


  1. Hi so my assignment asks that I use text saved under 'numbers.txt'
  2. I am using Windows, so I used notepad to write the text and save i..... More

Print this item

  Transposing Table
Posted by: salihozturk - Mar-02-2019, 01:24 AM - Forum: General Coding Help - Replies (3)

how can i transpose a table in python like below

from

Name Account Amount
Jhon 1 45
Jhon 2 463
Mich..... More

Print this item

  Get data from a webpage
Posted by: Pedroski55 - Mar-02-2019, 01:14 AM - Forum: Web Scraping & Web Development - Replies (3)

My girlfriend has been given the task of getting all the data from a webpage. The web page belongs to the adult education centre where she works. To g..... More

Print this item

  getting unique values and counting amounts
Posted by: Truman - Mar-01-2019, 11:21 PM - Forum: General Coding Help - Replies (26)

[python]# getting unique ngrams out of duplicates and counting how many times ngram appears
import requests
from bs4 import BeautifulSoup
import r..... More

Print this item

  Transposing a Matrix WITHOUT numpy
Posted by: TreasureDragon - Mar-01-2019, 10:41 PM - Forum: General Coding Help - Replies (5)

So our assignment is to ask for user input for two matrices and then multiply them and show the result then switch the result to a transpose. Since I ..... More

Print this item

  How to use 2to3.py converter under Windows OS
Posted by: samsonite - Mar-01-2019, 08:35 PM - Forum: General Coding Help - Replies (2)

During my recent revisiting of Python world, I realized that the pretty feature (2to3) for files conversion from Python2 to Python3 is suitable [b]onl..... More

Print this item

  What don't I understand about dict()
Posted by: Blaedel - Mar-01-2019, 07:50 PM - Forum: General Coding Help - Replies (2)

Dear friends,

There's something in either the dict() or the random.choice() that I don't understand fully I suppose. Can you shed some light on tha..... More

Print this item

  curses library
Posted by: autompav96 - Mar-01-2019, 04:06 PM - Forum: General Coding Help - Replies (2)

Hi there,
i am new in programming and i am using a rpi 3 b with python 2.7 to control a couple of servo motors but i have a couple of problems with m..... More

Print this item

  Multi-processing to communicate with microcontrollers
Posted by: Khoily - Mar-01-2019, 03:37 PM - Forum: General Coding Help - Replies (1)

Hi everyone,

I have 12 ESP32's (microcontroller) that connect to the network as TCP/IP server and I would to make my PC as a single TCP/IP Client. ..... More

Print this item

  problems with random number/string
Posted by: PrasadPython - Mar-01-2019, 03:28 PM - Forum: General Coding Help - Replies (3)

I am VERY new to Python (2 weeks in!) and was trying a random test of things I've learned so far (basics with if statements, print commands, etc.) I'm..... More

Print this item

  sorted object in list
Posted by: trois - Mar-01-2019, 03:14 PM - Forum: General Coding Help - Replies (2)

[python 3.7.2]

Hello so I already read how to do it and even try the exemple with student_objects.
So my problem is I want to sort a list by one of t..... More

Print this item

  Directory path
Posted by: gahhon - Mar-01-2019, 02:49 PM - Forum: General Coding Help - Replies (3)

I do have some issues regarding the directory path value.
Let's say my folder structure is like this

Print this item

  help with list
Posted by: lateublegende - Mar-01-2019, 02:14 PM - Forum: General Coding Help - Replies (2)

when I print the value of my list, he print b'value' and I don't know why the program does that. I think is binairy, but I need the value only.

Print this item

  SQLAlchemy query return last row only
Posted by: pascale - Mar-01-2019, 01:56 PM - Forum: General Coding Help - No Replies

Hi,
Bit stuck with this one, I am trying my code out in shell. I am following this ..... More

Print this item

  New window
Posted by: gunater - Mar-01-2019, 01:27 PM - Forum: GUI - No Replies

Hello, i have problem with qtpy.

[python]from PyQt5 import QtWidgets
from PyQt5.QtWidgets import QFileDialog
from s import CheckWindow
from ss i..... More

Print this item

  How to add one more similar form by clicking on the current one using JS? Django
Posted by: m0ntecr1st0 - Mar-01-2019, 01:02 PM - Forum: Web Scraping & Web Development - No Replies

It's simple. There is a form. It is necessary by clicking on it to add one more similar form. More precisely, not even by pressing, but when entering ..... More

Print this item

  Intricacies of Aliasing
Posted by: ClassicalSoul - Mar-01-2019, 11:57 AM - Forum: General Coding Help - Replies (2)

Hi,

Typically aliasing is done by assigning the 'original' variable to some other variable. But I was exploring the intricacies of aliasing, and am..... More

Print this item

  Getting error while loading excel(.xlsx) file using openpyxl module
Posted by: shubhamjainj - Mar-01-2019, 09:41 AM - Forum: General Coding Help - Replies (1)

Hi,

[python]
import openpyxl
#Path of workBook
path = "C:\\***\\python_sheet.xlsx"

#Load worksheet from the directory(path)
wb = openpyxl.lo..... More

Print this item

  Python modeling a math solution
Posted by: Masterwoot - Mar-01-2019, 08:39 AM - Forum: General Coding Help - Replies (1)

My colleague shared this fun game. Tickled my math bone. What code would you write to solve the generalized problem? [img]https://playwithyourmath.fil..... More

Print this item

  Python2 is not supported
Posted by: Skaperen - Mar-01-2019, 07:50 AM - Forum: General Coding Help - Replies (2)

i am now writing most of my scripts for Python3. is it reasonable to test which version of python is actually running and search for Python3 and if f..... More

Print this item

  first k non prime numbers print
Posted by: bsrohith - Mar-01-2019, 07:44 AM - Forum: General Coding Help - Replies (7)

I have a hackkerank coding challenge to print first n non prime numbers, i have the working code but the problem is that they have a locked code which..... More

Print this item

  Value error when converting hex value to bytearray
Posted by: shubhamjainj - Mar-01-2019, 06:02 AM - Forum: General Coding Help - Replies (7)

Hi,
I am getting ValueError: non-hexadecimal number found in fromhex() arg at position 7.
Below is the code :
Cmd1 = bytearray.fromhex("08 22 1 0 1..... More

Print this item

  Calling list() on permutation
Posted by: trevorkavanaugh - Mar-01-2019, 05:36 AM - Forum: General Coding Help - Replies (2)

Hello,

Whenever I call list() on a permutations object it removes all of the data from the permutations object. Could anyone explain why that is to..... More

Print this item

  run an excel macro with python
Posted by: mmolet - Mar-01-2019, 03:21 AM - Forum: General Coding Help - Replies (1)

Dear Coders, I am looking for a code that would run an excel macro (from 1 sheet), I have been searching the internet for days but I cannot find any g..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  My goal to be hired worki... 54 minutes ago GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 7 hours ago llarkin6 noisefloor General Codin...
  Integer Factorization Too... 8 hours ago fosuwxb fosuwxb Code sharing
  Comparing 2 100GB Drives/... Yesterday, 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
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
  pdf file processing: how ... 09-26, 13:14 Pavel_47 noisefloor General Codin...
  Regarding pdf for PCEP an... 09-26, 09:50 P212 Biks News and Disc...
Most views
  The best Prog... 577314
  Tutorial Requ... 500563
  Web Scraping ... 440984
  Newbie with P... 385020
  New Users Int... 369478
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+ 12090
buran 8176
snippsat 7370
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Williamcaurb Yesterday
sophielane Yesterday
Oscar0057 Yesterday
Cromulent Yesterday
PhamMaria Yesterday

User Panel Messages

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