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,304
» Latest member: IFDA123
» Forum threads: 38,798
» Forum posts: 175,903

Full Statistics

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

Latest Threads
Python is not working on ...
Forum: General Coding Help
Last Post: lary_p
3 hours ago
» Replies: 3
» Views: 98
No new line from print in...
Forum: General Coding Help
Last Post: bowlofred
3 hours ago
» Replies: 2
» Views: 31
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
4 hours ago
» Replies: 8
» Views: 645
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: mamta25
Yesterday, 04:48 AM
» Replies: 6
» Views: 7,803
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Nov-26-2025, 09:58 PM
» Replies: 3
» Views: 131
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
Nov-26-2025, 03:53 PM
» Replies: 1
» Views: 112
My regex function is not ...
Forum: General Coding Help
Last Post: perfringo
Nov-26-2025, 08:47 AM
» Replies: 3
» Views: 200
best way to learn python
Forum: News and Discussions
Last Post: ichsanputr
Nov-26-2025, 04:40 AM
» Replies: 6
» Views: 3,211
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
Nov-25-2025, 02:50 AM
» Replies: 6
» Views: 308
PyQt5 - Get a parameter f...
Forum: GUI
Last Post: deanhystad
Nov-24-2025, 02:18 PM
» Replies: 5
» Views: 190

 
  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

  Selenium Webdriver Memory Problem?
Posted by: satbir129 - Mar-01-2019, 03:02 AM - Forum: Web Scraping & Web Development - Replies (2)

Hi guys, so I made my first little program after watching some beginner videos and I'm having a problem where it keeps using more and more memory unti..... More

Print this item

  How to retrieve data from site
Posted by: ROHK - Mar-01-2019, 02:11 AM - Forum: Web Scraping & Web Development - Replies (2)

Dear all,

I would like to retrieve data from a site in following format.

Column 1, column 2, column 3, column 4
date, second name, first name, ..... More

Print this item

  Adding a 3rd key in a csv file
Posted by: ebolisa - Feb-28-2019, 11:35 PM - Forum: General Coding Help - Replies (2)

Hi,

The following code adds the ssid and pass in a dat file as "ssid";"pass".

[python]
ssid = "test"
password = "pass"
profiles = {}
profil..... More

Print this item

  SyntaxError: can't assign to operator
Posted by: Jomy10 - Feb-28-2019, 11:04 PM - Forum: General Coding Help - Replies (3)

Hello

I'm trying to write a little program for class, but I get an error saying "SyntaxError: can't assign to operator" and I don't know why that i..... More

Print this item

  Python homework assigment
Posted by: makisha - Feb-28-2019, 10:00 PM - Forum: Homework - Replies (3)

first of all u wanna apologize if it's asking too much, but i need if someone can here who's decent with python to write me a small program that's gon..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Python is not working on ... 3 hours ago lary_p lary_p General Codin...
  No new line from print in... 3 hours ago Lou bowlofred General Codin...
  Help with Serial.write in... 4 hours ago racingsubby Larz60+ General Codin...
  Can I develop a live vide... Yesterday, 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...
  best way to learn python 11-26, 04:40 dutch ichsanputr News and Disc...
  data fetching for indian ... 11-25, 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
Most views
  The best Prog... 579433
  Tutorial Requ... 512533
  Web Scraping ... 442314
  Newbie with P... 386367
  New Users Int... 380603
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 7390
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
IFDA123 Today
TimTom420 Yesterday
cruisesfares Yesterday
SNR Yesterday
Jonathan Yesterday

User Panel Messages

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