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,263
» Latest member: aanthonymaaleyo3938
» Forum threads: 38,787
» Forum posts: 175,849

Full Statistics

Online Users
There are currently 46 online users.
» 0 Member(s) | 44 Guest(s)
Bing, Google

Latest Threads
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 04:07 PM
» Replies: 2
» Views: 94
PermissionError: [Errno 1...
Forum: GUI
Last Post: deanhystad
Yesterday, 02:42 PM
» Replies: 1
» Views: 60
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 01:54 PM
» Replies: 1
» Views: 60
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Yesterday, 01:00 PM
» Replies: 5
» Views: 316
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 45
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Nov-14-2025, 06:38 PM
» Replies: 0
» Views: 73
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 266
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 143
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 239
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Nov-13-2025, 11:52 AM
» Replies: 6
» Views: 423

 
  2 iterators or generators
Posted by: Skaperen - Jan-04-2018, 04:53 AM - Forum: General Coding Help - Replies (1)

i want to be able to interleave two or more iterator or generators, including stepping one or more of them fewer or more times as coded logic may dict..... More

Print this item

  BeautifulSoup - extract table but not using ID
Posted by: jonesin1974 - Jan-04-2018, 02:49 AM - Forum: Web Scraping & Web Development - Replies (5)

Hi,

I am scraping data from a web page but none of the items have an ID. I'm struggling to find an example so here goes...

The table looks like..... More

Print this item

  Unable to load cookies with Pickle
Posted by: HiImNew - Jan-04-2018, 01:30 AM - Forum: Web Scraping & Web Development - Replies (5)

Full Code:
[python]
>>> while True:
from selenium import webdriver
driver = webdriver.Chrome()
import pickle
cookies = pickle.load(open("coo..... More

Print this item

  Dictionary methods
Posted by: Wolfpack2605 - Jan-04-2018, 01:12 AM - Forum: General Coding Help - Replies (2)

Can someone please explain what is happening here. I have no clue what val is or what .get is. Please explain.

[quote]Earlier in this module we loo..... More

Print this item

  Error in dictionaries
Posted by: Wolfpack2605 - Jan-03-2018, 11:52 PM - Forum: Homework - Replies (3)

I'm having trouble with an error in my code and I cannot find out why it is happening.

This is the task:
[i]Most non-smartphone mobile phones have..... More

Print this item

  eliza
Posted by: ghoti69 - Jan-03-2018, 11:39 PM - Forum: General Coding Help - Replies (5)

I have the source code for eliza. I am getting a syntax error.line 260, says missing parentheses in my print statement. can someone, straiten me out...... More

Print this item

  Number Guessing Game - Need Help
Posted by: joekbaum - Jan-03-2018, 10:53 PM - Forum: General Coding Help - Replies (8)

I am trying to create a program where the user chooses a number between 1-100 and the computer tries to guess it in as few tries as possible. I think ..... More

Print this item

  Array in numpy
Posted by: Truman - Jan-03-2018, 10:42 PM - Forum: Data Science - Replies (5)

I installed modul numpy and wrote this code:

[python]
import numpy as np
height = [ 1.73, 1.68, 1.71, 1.89, 1.79]
weight = [ 65.4, 59.2, 63.6, 8..... More

Print this item

  installing packages Globally vs Virtually
Posted by: karaokelove - Jan-03-2018, 10:07 PM - Forum: General Coding Help - Replies (2)

Hi all, I was wondering what are best practices regarding installing packages globally vs installing in a virtual environment. What would be some good..... More

Print this item

  COMPLETE BEGINNER TO NETWORKING. HELP?
Posted by: ShadowWarrior17 - Jan-03-2018, 09:42 PM - Forum: Networking - Replies (11)

I am looking to create a LAN game on python. I am currently in the works of a connect four game.

Can anyone tell/show how to setup a server, so it'..... More

Print this item

  Multiple gets from JSON?
Posted by: alex36540 - Jan-03-2018, 09:40 PM - Forum: General Coding Help - Replies (2)

Hello, I am writing a script using and Instagram API to get data from users. Here is the link for the Github page: https://github.com/LevPasha/Instagr..... More

Print this item

  Connect Four Win Check Function
Posted by: ShadowWarrior17 - Jan-03-2018, 09:37 PM - Forum: General Coding Help - Replies (7)

I am creating a Connect Four game and was wondering on how to create a function to determine if a player has won.

This is my board:
[python]
"| ..... More

Print this item

  TypeError: unhashable type: 'list'
Posted by: Andreas - Jan-03-2018, 09:31 PM - Forum: General Coding Help - Replies (3)

Hello.
I'm trying to learn to code. I've done some simpler scripts in MEL and Python in Maya but I would like to learn more.

I'm stuck and I don't..... More

Print this item

  Interesting article on PyTourch
Posted by: Larz60+ - Jan-03-2018, 09:06 PM - Forum: News and Discussions - No Replies

https://www.oreilly.com/ideas/when-two-t...er-systems

Print this item

  Oauth1 - python3
Posted by: user256 - Jan-03-2018, 07:22 PM - Forum: General Coding Help - Replies (1)

Python3 - Currently trying to sign a HTTP request to access an API, unfortunately I keep running into an issue with requests.

using: https://pypi...... More

Print this item

  pyinstaller generated code gets flagged by NIS
Posted by: kris44dad - Jan-03-2018, 05:43 PM - Forum: General Coding Help - Replies (3)

I just started learning python. I wrote the following source code to generate a ~1GB size file.

[python]
seed_number = 1073741824
datastring = "0..... More

Print this item

  Django REST - input of some form fields is send twice to the backend
Posted by: ann - Jan-03-2018, 03:09 PM - Forum: Web Scraping & Web Development - Replies (4)

Does anybody had the same problem? Some users' inputs are sent to the backend twice.

Data are stored in JSON's object. Key-value schema doesn't trigg..... More

Print this item

  os.rename Windows remove illegal char
Posted by: fgerrata - Jan-03-2018, 02:06 PM - Forum: Web Scraping & Web Development - Replies (3)

I need help to understand the best partice to remove illegal char from file and path name.

[b] [i] Windowz (FAT32, NTFS): Any Unicode except NUL,..... More

Print this item

  Click on button with python mechanize
Posted by: torlkius - Jan-03-2018, 01:20 PM - Forum: Web Scraping & Web Development - Replies (3)

Hello,

I would like to click a button using mechanize but I can't find the right code.

Until then, I had succeeded because I was going through ..... More

Print this item

  Script to read, write data to excel file and update it to firebase
Posted by: Expertlearner - Jan-03-2018, 01:08 PM - Forum: General Coding Help - Replies (1)

I am going to do a project on database analysis where the data is read from an excel file. The user should be able to [i]search for the dates, ..... More

Print this item

  extract specific dat from txt file
Posted by: mephist34 - Jan-03-2018, 12:41 PM - Forum: General Coding Help - Replies (1)

I have alot of txt files that contains data i need to extract; for example:

[python] ** n zone 1 vzone= 465.99 / 1 2 3 4 5 6 7 8 ..... More

Print this item

  Excel Column as List
Posted by: champk - Jan-03-2018, 12:38 PM - Forum: General Coding Help - Replies (2)

Hi Everyone,

I am new to python. My requirement is to load a particular excel column as list and then count distinct values in that list.

Kindl..... More

Print this item

  ValueError: could not convert string to float: .
Posted by: BoaCoder3 - Jan-03-2018, 12:24 PM - Forum: General Coding Help - Replies (3)

In this programme i'm trying to solve a mathematical ratio problem, then calculate the squareroot, however, whenever i try to give it input like this:..... More

Print this item

  Why args type is always tuple, when passed it as argument to the function.
Posted by: praveena - Jan-03-2018, 12:04 PM - Forum: General Coding Help - Replies (5)

I am passing list argument to the function. But type of args is always tuple.
I would like to know the specific reason for this behavior?
[python]
..... More

Print this item

  Reading specific rows (lookup)
Posted by: rumbles - Jan-03-2018, 12:01 PM - Forum: General Coding Help - Replies (3)

I would like to pull data from a csv, rather than manually enter date range and filename every time.

In my csv, example rows:

2018, 01, 201..... More

Print this item

  What dose these commands mean?
Posted by: Mads - Jan-03-2018, 11:51 AM - Forum: Homework - Replies (6)

What dose these commands mean? Huh Variable, Import random, Def(Getwords, Return, Checklists)While, Print, Input, For n in range, List. From a c..... More

Print this item

  easysnmp ImportError: cannot import name Session
Posted by: anna - Jan-03-2018, 10:50 AM - Forum: General Coding Help - Replies (2)

Hi


Package:- easysnmp0.2.5
Error:- ImportError: cannot import name Session

Python version: 2.7.5


[python]Python 2.7.5 (default, Aug 4 ..... More

Print this item

  Index Error, can't understand why.
Posted by: Diamond - Jan-03-2018, 10:13 AM - Forum: General Coding Help - Replies (5)

Hello!
I am getting an IndexError, and not sure why? My goal is to print out the higher numeric list element.

[python]
def mag(var):
pos=0..... More

Print this item

  global name 'thetime' is not defined
Posted by: cyberion1985 - Jan-03-2018, 09:52 AM - Forum: General Coding Help - Replies (10)

Hi,

So I have three files :

1.) File_INIT.py

The main file that will initialize (mostly) everything.
This file contains definitions for func..... More

Print this item

  unable to find vcvarsall.bat
Posted by: nithya - Jan-03-2018, 07:16 AM - Forum: General Coding Help - Replies (1)

I am using a LULU package which was created 6 years ago. I am executing the package setup.py file in python version 3.6 and the unexpected error "Unab..... More

Print this item

  IndexError: list assignment index out of range
Posted by: ted_chou12 - Jan-03-2018, 05:14 AM - Forum: General Coding Help - Replies (4)

I am trying to create a multiple dimension array with predefined index:
[python] returns = []
for s in context.securities:
returns[s..... More

Print this item

  Invalid Syntax
Posted by: mamta_parida - Jan-03-2018, 03:41 AM - Forum: General Coding Help - Replies (5)

Hello Everyone,

As I'm new to python, i tried some script but while running that script getting an error i.e. "There's an error in your program: in..... More

Print this item

  Cannot open file [ERNO 22] INVALID ARGUMENT
Posted by: JoshuaKim02 - Jan-03-2018, 12:37 AM - Forum: Web Scraping & Web Development - Replies (20)

https://gyazo.com/62c8bbc7236e1ea0fc475458b38605df

ERROR I GET: https://gyazo.com/829caac4a291c7a0fb2a8e793f62e9ae


I can't open the program at..... More

Print this item

  Impossible Function Task?
Posted by: ShadowWarrior17 - Jan-02-2018, 10:36 PM - Forum: Homework - Replies (11)

I have recently taught myself to use functions, and tried to do the impossible, this task:

Shhh. They are listening! We need a plan…
I know, let ..... More

Print this item

  In CSV, how to write the header after writing the body?
Posted by: Tim - Jan-02-2018, 10:02 PM - Forum: Web Scraping & Web Development - Replies (18)

Hello Forum,

I'm using csv package to build a .csv file in Python v3.6.
What I'm doing is converting and combining several .bib files into one C..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to make ball stay wit... Yesterday, 16:07 nathanael deanhystad General Codin...
  PermissionError: [Errno 1... Yesterday, 14:42 Tuurbo46 deanhystad GUI
  Graph Interpolate Difficu... Yesterday, 13:54 Tuurbo46 deanhystad General Codin...
  sorting a lisr of file pa... Yesterday, 13:00 Skaperen DeaD_EyE News and Disc...
  conditional nested loops 11-14, 23:31 Skaperen Skaperen News and Disc...
  PyQt6 QWidgets and system... 11-14, 18:38 stevecoh1 stevecoh1 GUI
  [solved] re.split issue 11-14, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... 11-14, 15:33 pbkurd Larz60+ General Codin...
  New to python and coding 11-13, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... 11-13, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
Most views
  The best Prog... 579005
  Tutorial Requ... 510782
  Web Scraping ... 442018
  Newbie with P... 386056
  New Users Int... 377379
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+ 12108
buran 8195
snippsat 7388
deanhystad 6913
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
aanthonymaaleyo3938 Today
chuhlowe Yesterday
SledgeNE Yesterday
nathanael 11-14
JamesFalkner 11-14

User Panel Messages

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