Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 18,812
» Latest member: mkp
» Forum threads: 37,498
» Forum posts: 170,377

Full Statistics

Online Users
There are currently 344 online users.
» 1 Member(s) | 335 Guest(s)
Google, Facebook, Baidu, Apple, AOL, Gribouillis

Latest Threads
Reading Baseball Box Scor...
Forum: Homework
Last Post: Pedroski55
1 hour ago
» Replies: 3
» Views: 225
Working with group of lin...
Forum: General Coding Help
Last Post: Gribouillis
3 hours ago
» Replies: 1
» Views: 88
Extracting content from a...
Forum: Web Scraping & Web Development
Last Post: Fernanda
6 hours ago
» Replies: 2
» Views: 174
Pygame freezes after cert...
Forum: Game Development
Last Post: deanhystad
6 hours ago
» Replies: 4
» Views: 5,479
My first python game : Ti...
Forum: Game Development
Last Post: deanhystad
6 hours ago
» Replies: 5
» Views: 174
adding mouse control to g...
Forum: Game Development
Last Post: XavierPlatinum
9 hours ago
» Replies: 7
» Views: 535
[split] Class and methods
Forum: General Coding Help
Last Post: ebn852_pan
Yesterday, 08:46 PM
» Replies: 9
» Views: 407
Parsing "aTimeLogger" And...
Forum: Data Science
Last Post: LauraB
Yesterday, 07:20 PM
» Replies: 4
» Views: 352
How to run this triple in...
Forum: Homework
Last Post: Axel_Erfurt
Yesterday, 11:43 AM
» Replies: 1
» Views: 116
How to parse and group hi...
Forum: Homework
Last Post: AlinaHabba24
Yesterday, 09:22 AM
» Replies: 1
» Views: 267

 
  UnBoundLocalError
Posted by: Seaninho - May-30-2020, 08:59 AM - Forum: General Coding Help - Replies (3)

Hello to everyone!

I'm trying to create a code using Python but I have a problem.
It gives me this error:
[error]File "/opt/miniconda3/bin/sfi..... More

Print this item

  _tkinter.TclError: image "pyimage2" doesn't exist
Posted by: Killdoz - May-30-2020, 08:14 AM - Forum: GUI - Replies (1)

[error]Traceback (most recent call last):
File "C:\Users\User\Desktop\програування\stickmen\mister mario goes to exit.py", line 331, in <module>
..... More

Print this item

  if the input is not number, let user input again
Posted by: teatea - May-30-2020, 07:28 AM - Forum: General Coding Help - Replies (14)

hi :) i am starting to learn python, and learning from Automating Boring Stuff With Python, then i tried to implement the knowledge and do something b..... More

Print this item

  File Opening
Posted by: Hitso - May-30-2020, 07:04 AM - Forum: General Coding Help - Replies (10)

I cannot open the file below. Both the .py file and the salesdata.csv are stored in the same directory.

This is the error :
FileNotFoundError: [Er..... More

Print this item

  Google Sheets API Error
Posted by: Connerb42 - May-30-2020, 06:45 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi I am high school senior and I want to do a small program for a school project.

I need to get information from a google sheet into my code. I fol..... More

Print this item

  After_cancel
Posted by: menator01 - May-30-2020, 06:32 AM - Forum: GUI - Replies (1)

I've been playing around with an earlier post. I added a reset timer to the widget. The first run through the timer works as expected but, the next ru..... More

Print this item

  [split] Any improvements
Posted by: Adamstiffman - May-30-2020, 03:46 AM - Forum: Code Review - Replies (1)

I design a code Python Program Code for Sort File In System : -
[python]#!/usr/bin/env python

from __future__ import print_function # Only for P..... More

Print this item

  python library not defined in user defined function
Posted by: johnEmScott - May-30-2020, 03:41 AM - Forum: General Coding Help - Replies (2)

Why doesn't this work?

[python]
def main():
import os
fileName = "text.txt"
userfunction(fileName)

def userfunction(fileName):
..... More

Print this item

  NEED HELP WITH NUMBER SORTER
Posted by: Paul_Choi06 - May-30-2020, 01:25 AM - Forum: General Coding Help - Replies (2)

Hi, I am trying to make a number sorter. I wish for the user to enter numbers and then the program will put in order from least to greatest. My proble..... More

Print this item

  How to append elemnent in columns
Posted by: Mekala - May-30-2020, 12:27 AM - Forum: General Coding Help - No Replies

Hi,
I am reading an XML file and want to append the data to the list. I want to append corresponding elements in their respective columns, for exampl..... More

Print this item

  LMS (Learning Management System)
Posted by: ibrhmymn - May-29-2020, 10:17 PM - Forum: News and Discussions - Replies (7)

Hi friends,
I want to learn coding, and especially I want to get expertise on creating LMS (Learning Management System)which are working web based mo..... More

Print this item

  DFS and BFS
Posted by: garry1415 - May-29-2020, 05:56 PM - Forum: News and Discussions - Replies (1)

What happens if the ending cell is very close to the starting cell? Is DFS guaranteed to be faster than BFS?

Print this item

  install the gTTS
Posted by: yasser - May-29-2020, 05:39 PM - Forum: News and Discussions - Replies (4)

Hello

I am trying to install gTTs from pycharm but i have the below error:

pip install gTTS

Error

python -m pip install gtts
..... More

Print this item

  can't save text string
Posted by: branko316 - May-29-2020, 05:11 PM - Forum: General Coding Help - Replies (2)

Hi, I'm working in the FreeBSD OS environment and using Python version 3.6.8.

I'm essentially trying to run a script that does the equivalent of th..... More

Print this item

  Flask deployment from heck
Posted by: lmolter54 - May-29-2020, 05:04 PM - Forum: Web Scraping & Web Development - Replies (4)

Hi and hello. This is my first post. To summarize, I retired from 44 years as a C and dinosaur-language programmer in April of '20. My wife was using ..... More

Print this item

  GUI section
Posted by: menator01 - May-29-2020, 03:20 PM - Forum: News and Discussions - Replies (4)

I just noticed that the views for GUI ha s 11349 views. Are they really that many people interested in dy..... More

Print this item

  Typing and variable initializers
Posted by: jgossage - May-29-2020, 03:18 PM - Forum: General Coding Help - No Replies

I am starting to use typing and have come up with problems working out how to use typing in a particular situation.
I am running Python 3.8.3 in Ecli..... More

Print this item

  Differential equations with initial condition in Python (change a working code)
Posted by: Euler2 - May-29-2020, 02:50 PM - Forum: General Coding Help - Replies (1)

I am pretty new in Python. I have a working code which looks like

[python]
import numpy as np
import scipy.integrate as sp
import sys
g, l, k =..... More

Print this item

  [XML] How to remove node?
Posted by: Winfried - May-29-2020, 02:50 PM - Forum: General Coding Help - No Replies

Hello,

Does someone know how to use pykml/lxml to remove a node?

I simply need to remove all occurences of "ExtentedData" nodes from a KML file,..... More

Print this item

  Excpetion Handling Getting Error Number
Posted by: gw1500se - May-29-2020, 02:34 PM - Forum: General Coding Help - Replies (4)

I don't know why this is rocket science but I cannot find any way to get just the error number in the exception handler. All the examples show how to ..... More

Print this item

  Parse encrypted xml file to csv
Posted by: Mekala - May-29-2020, 01:56 PM - Forum: General Coding Help - Replies (2)

Hi,
I have encrypted the XML file and need to parse and save it to the CSV file. Does python have any module to do this task? and example?

Print this item

  How to create a varying qty of instances of a Class and name them?
Posted by: KM007 - May-29-2020, 12:15 PM - Forum: General Coding Help - Replies (2)

For a very simple dice game I intend to create a class with attributes of name and score. It is straight forward to create this and also to create obj..... More

Print this item

  Ignore first few letters of a line when reading file.
Posted by: ShakeyPakey - May-29-2020, 11:14 AM - Forum: General Coding Help - Replies (16)

Hello, everybody!

I have run into a spot of bother while writing my Python script and I am wondering if anyone can help me out...... More

Print this item

  urllib.request.urlopen and proxy
Posted by: perseus142 - May-29-2020, 08:46 AM - Forum: Networking - No Replies

Hello guys,
I am learning python. Now I am at stage to use urllib.request.urlopen.
The code from py4e:

[python]import urllib.request, urllib.par..... More

Print this item

  remove spaces with exceptions
Posted by: catosp - May-29-2020, 08:12 AM - Forum: General Coding Help - Replies (4)

Hello!

I have the following problem:

This is the string: asdas asdd sd a2123 3234 "test asd" asda

Is possible to remove all spaces except the..... More

Print this item

  Receiving ValueError("bad input shape {0}".format(shape)) error
Posted by: SuryaCitizen - May-29-2020, 07:57 AM - Forum: General Coding Help - Replies (2)

Hi,

I'm trying to run the below code but receiving "ValueError("bad input shape {0}".format(shape))" error. Can someone please help me resolve this..... More

Print this item

  TypeError that i can't solve it
Posted by: cls0724 - May-29-2020, 07:14 AM - Forum: General Coding Help - Replies (1)

[python]class MACD_Strategy:
def __init__(self, stock_price, MACD, MACD_Signal):
self.stock_price = stock_price
self.MACD = MAC..... More

Print this item

  xlwings UDF showing name error
Posted by: pwt - May-29-2020, 04:34 AM - Forum: General Coding Help - Replies (9)

Hi,

I'm trying to write a simple UDF using xlwings. Note that I don't have much experience with Python.

The Python code that I'm trying to call ..... More

Print this item

  turtle window not showing
Posted by: yokeloonlo01 - May-29-2020, 02:36 AM - Forum: General Coding Help - Replies (3)

Hi,

I am new trying to learn python.

For the turtle, I actually copied the following code and tried to run on Pycharm community 2020 1.1 version jus..... More

Print this item

  Issue with dataframe column
Posted by: nsadams87xx - May-29-2020, 02:00 AM - Forum: Data Science - No Replies

Hey everyone, I'm trying to set a y variable to a dataframe column so I can run train test split on it but I'm getting the following error when I try ..... More

Print this item

  I'm following a tutorial, i don't know what i'm doing wrong
Posted by: Davidodadorito - May-29-2020, 12:48 AM - Forum: Game Development - Replies (5)

Think Huh So I was following a tutorial right like any nooby does and I change the variable so I actually learn from it and not just suck and..... More

Print this item

  ModuleNotFoundError: no module named 'encodings'
Posted by: grunge10111 - May-29-2020, 12:13 AM - Forum: General Coding Help - Replies (1)

Hello everyone,

I have Python 3.7.5 on Windows 10 and it has worked fine for the most part. But lately whenever I've tried to use it, I get this en..... More

Print this item

  Bot coding telegram.ext
Posted by: Kumarkv - May-28-2020, 11:55 PM - Forum: General Coding Help - Replies (1)

Dear All,
Excuse me if my post is in not proper forum.

I am trying bot library from telegram.ext.
Used the same code from python telegram bot. Th..... More

Print this item

  Selecting text as an input
Posted by: lazerwolf101 - May-28-2020, 11:49 PM - Forum: General Coding Help - Replies (2)

The purpose of my code is to decrypt text in the variable "message". When you run the code it will show all the keys from 1 to 25. And after it will a..... More

Print this item

  Window Color/Adding a ship
Posted by: kleeklee - May-28-2020, 11:26 PM - Forum: Game Development - Replies (2)

I am able to edit the window size. However, when attempting to change the window background color I am having issues. Doesn't matter what numbers I en..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Reading Baseball Box Scor... 1 hour ago tommythumb Pedroski55 Homework
  Working with group of lin... 3 hours ago knob Gribouillis General Codin...
  Extracting content from a... 6 hours ago SandraYokum Fernanda Web Scraping ...
  Pygame freezes after cert... 6 hours ago GJG deanhystad Game Developm...
  My first python game : Ti... 6 hours ago ForsakenDusk deanhystad Game Developm...
  [PyGame] adding mouse con... 9 hours ago flash77 XavierPlatinum Game Developm...
  [split] Class and methods Yesterday, 20:46 ebn852_pan ebn852_pan General Codin...
  Parsing "aTimeLogger" And... Yesterday, 19:20 Drone4four LauraB Data Science
  How to run this triple in... Yesterday, 11:43 Safinazsalem Axel_Erfurt Homework
  How to parse and group hi... Yesterday, 09:22 ann23fr AlinaHabba24 Homework
  Need to fix ValueError: A... Yesterday, 08:07 alexanderDennisEnviro500 alexanderDennisEnviro500 Data Science
Most views
  The best Prog... 462533
  Web Scraping ... 342551
  Tutorial Requ... 332375
  Newbie with P... 279446
  Thread remain... 264225
Most reputation
buran 582
snippsat 499
Larz60+ 452
Gribouillis 341
deanhystad 313
Most replies
  New Users Int... 432
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11883
buran 8091
snippsat 7107
deanhystad 6271
metulburr 5150
Top referrers
Googlepro 20
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
mkp Today
ericxzhou Today
yosmery83 Today
xhuljo Yesterday
Rasem Yesterday

User Panel Messages

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