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,952
» Latest member: adamsmith12
» Forum threads: 38,725
» Forum posts: 175,521

Full Statistics

Online Users
There are currently 56 online users.
» 1 Member(s) | 48 Guest(s)
Bing, Google, AOL, Twitter, adamsmith12

Latest Threads
pip install requests does...
Forum: General Coding Help
Last Post: adamsmith12
9 minutes ago
» Replies: 9
» Views: 29,025
Little project for someon...
Forum: Jobs
Last Post: trntgl
25 minutes ago
» Replies: 4
» Views: 2,945
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:00 PM
» Replies: 5
» Views: 9,245
IBKR Purchasing code issu...
Forum: General Coding Help
Last Post: compuman145
Yesterday, 09:08 AM
» Replies: 0
» Views: 141
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
Yesterday, 03:29 AM
» Replies: 2
» Views: 540
Is the interpreter that c...
Forum: General Coding Help
Last Post: helendamdam
Yesterday, 02:36 AM
» Replies: 0
» Views: 167
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
Sep-22-2025, 08:56 PM
» Replies: 9
» Views: 695
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 4,936
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 1,210
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,575

 
  If, elif, else doesn't work well
Posted by: Vidar567 - Nov-21-2020, 01:20 PM - Forum: General Coding Help - Replies (5)

[python]print("Draw it?")
chart = str(input())

if chart == "Tak" or "tak" or "t":

print("Draw chart)

elif chart == "Nie" or "nie" or "n"..... More

Print this item

  Retrieving Cookies
Posted by: whois1230 - Nov-21-2020, 11:00 AM - Forum: General Coding Help - Replies (2)

Hello, I wrote the following code and ran it:
[python]#!/usr/bin/python3
# Import modules for CGI handling
from os import environ
import cgi, cgit..... More

Print this item

  I seem to have two versions of python 3.7.9 installed
Posted by: miner_tom - Nov-21-2020, 07:54 AM - Forum: General Coding Help - Replies (7)

I am not aware of how this happened but the two versions give different results.

When I invoke python the results are

[quote]Python 3.7.9 (defau..... More

Print this item

  Learning Python with a Caesar cipher
Posted by: Drone4four - Nov-21-2020, 06:57 AM - Forum: General Coding Help - Replies (5)

Hi!

I’m learning about Caesar ciphers. I attempted to write my own from scratch some time ago whi[url=https://python-forum.io/thread-31077.html]..... More

Print this item

  Tuple help!
Posted by: chiron - Nov-21-2020, 04:24 AM - Forum: General Coding Help - Replies (12)

Complete beginner to all things programming, let alone python. I'm looking to numerous sources to help me out learning but I'm struggling big time. I ..... More

Print this item

  Dictionary question
Posted by: kam_uk - Nov-21-2020, 02:07 AM - Forum: Homework - Replies (7)

Hey All

I have a dictionary as such

car_dictionary = {
    "Ford" : "Blue",
    "Nissan" : "Red"
}
I want to assign a par..... More

Print this item

  Convert list of numbers to string of numbers
Posted by: kam_uk - Nov-21-2020, 01:50 AM - Forum: Homework - Replies (5)

Hi

I have a list

My_list = [1, 2, 3, 4, 5]
I want to convert each number from an integer to a string.

I would normally us..... More

Print this item

  to call via console a python-programm
Posted by: Liki - Nov-21-2020, 01:10 AM - Forum: General Coding Help - Replies (9)

Hello,

I'm trying to call an in Python frish-written programm zeit_01 via console.
It didn't run. What I did false?:

[img]https://i.imgur.c..... More

Print this item

  How to modify item in dictionary?
Posted by: Winfried - Nov-21-2020, 12:48 AM - Forum: General Coding Help - Replies (7)

Hello,

I'm using the xmltodict module to handle an XML file like a dictionary.

Does Python prevent mo..... More

Print this item

  How to create a linked list and call it?
Posted by: loves - Nov-20-2020, 09:42 PM - Forum: General Coding Help - Replies (12)

I want to create a linked list and insert dummy data to verify it. Please see my code.
[python]class ListNode:
def __init__(self, val=0, next=N..... More

Print this item

  requests_futures.sessions retry list of HTTP 429
Posted by: Johanoosterwaal - Nov-20-2020, 09:23 PM - Forum: General Coding Help - No Replies

Got this python code that works great sending parallel http requests. When i get a HTTP 429 (Too Many Requests) it is appended to a list. The question..... More

Print this item

  sublime & intellisence
Posted by: luke83 - Nov-20-2020, 08:26 PM - Forum: General Coding Help - No Replies

Hello Guys,
New coders stupid question, using sublime as my IDE, i THOUGHT i had sublime setup correctly for Python however as you can see from the ..... More

Print this item

  Creating table in MySQL db with decimal number issue
Posted by: dangermaus33 - Nov-20-2020, 07:52 PM - Forum: General Coding Help - Replies (7)

New coder here. I am working on code to create a simple MySQL table and I want a number value to have decimals. I used the DECIMAL data type and speci..... More

Print this item

  Python reading variable in another py file wrongly
Posted by: _vertig0 - Nov-20-2020, 06:48 PM - Forum: General Coding Help - Replies (2)

I have 2 .py files below (Both shortened and include the problem sections):
engine.py
[python]import events

running = False;

def start():
..... More

Print this item

Big Grin Beginner - Assistance please
Posted by: Elippsis007 - Nov-20-2020, 02:22 PM - Forum: General Coding Help - Replies (4)

Hello!

I am really struggling to understand why I am getting a return on my interpreter 3 lines for my ['yes, 'no']
prompt.

Would someone kindl..... More

Print this item

  Python Substring
Posted by: muzikman - Nov-20-2020, 01:32 PM - Forum: General Coding Help - Replies (4)

Greetings,

I am new to the Python language; however, I have experience in other OOP languages. I have a question based on Python substring syntax...... More

Print this item

Photo [Solved] How do I position 'token' in JavaScript in search box?
Posted by: cheers100 - Nov-20-2020, 12:44 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello,

I'd like to know how I can position 'token' in JavaScript code with keyword-'toke' in search box. Now I have to check each line to locate wh..... More

Print this item

  [gtk] How to modify a part of a text of a gtk textview
Posted by: cyrille - Nov-20-2020, 10:00 AM - Forum: GUI - Replies (1)

I learn GTK with Python and I've a problem with the widget texview. I'd like to changed / modify specific part of a text in a buffer (textview).

Fo..... More

Print this item

  Single digits seem to be greater than double digits
Posted by: Frosty_GM - Nov-20-2020, 09:30 AM - Forum: General Coding Help - Replies (4)

Hello, I am new to Python and I've been playing around with the 'Hello World' script that everyone probably starts with

I wanted to see if i could ..... More

Print this item

  sorting one by one
Posted by: 3Pinter - Nov-20-2020, 08:03 AM - Forum: General Coding Help - Replies (4)

I'm going to explain what I want as simple as possible (brainfarts over here atm),

You probably know the game mikado, where you release a bunch of ..... More

Print this item

  compresslevel vs. preset
Posted by: Skaperen - Nov-20-2020, 03:21 AM - Forum: News and Discussions - Replies (2)

gzip.open() and bz2.open() both have a keyword argument compresslevel= to set the compression level while lzma.open() uses preset= for t..... More

Print this item

  default mode in compression modules
Posted by: Skaperen - Nov-20-2020, 03:12 AM - Forum: News and Discussions - No Replies

lzma.open() and gzip.open() both show a default for mode of 'rb' but bzip2 shows a default of 'r'. given that the effect is the same since all 3 open..... More

Print this item

  Import error
Posted by: Beingcode - Nov-20-2020, 02:57 AM - Forum: General Coding Help - No Replies

I am getting an import error, when I import any python module and library

The following error shown by IDE-

from pygame.base import * # pylint:..... More

Print this item

  pls help with this assignment. basic into to python class
Posted by: valerie_thomas - Nov-20-2020, 02:18 AM - Forum: General Coding Help - Replies (2)

working on visual studio code, python 3.8.6
i want to learn so feel free to just leave advice and no solution.
1.This is a simplified gas stat..... More

Print this item

  Pyspark SQL Error - mismatched input 'FROM' expecting <EOF>
Posted by: Ariean - Nov-20-2020, 01:37 AM - Forum: General Coding Help - Replies (3)

Hello All,
I am executing a python script in AWS EMR (Linux) which executes a sql inside or below snippet of code and erroring out. May i please know..... More

Print this item

  detecting input that is not compressed
Posted by: Skaperen - Nov-20-2020, 12:19 AM - Forum: News and Discussions - No Replies

are any of the formats in lzma able to detect input data that is not compressed, or at least data it cannot recognize as compressed?

Print this item

  Formatting json cleanly
Posted by: Daring_T - Nov-19-2020, 10:39 PM - Forum: General Coding Help - No Replies

Daring_T here,
I have a dictionary that appends to a json file, and it outputs on one line.
Is there a way to cleanly format the json data like ppri..... More

Print this item

  Serializable
Posted by: JarredAwesome - Nov-19-2020, 10:24 PM - Forum: General Coding Help - Replies (4)

Hey everyone,

I am working on making a custom controller for a BLE device using a rasp-pi and python.

The app that comes with my BLE device is w..... More

Print this item

  Saving a download of stopwords (nltk)
Posted by: Drone4four - Nov-19-2020, 08:51 PM - Forum: General Coding Help - Replies (1)

I’ve got a basic Django project. One feature I am working on counts the number of most commonly occurring words in a .txt file, such as a large public..... More

Print this item

  How to plot level surfaces
Posted by: schniefen - Nov-19-2020, 07:08 PM - Forum: General Coding Help - No Replies

This is a nice introduction on how to plot level curves given a functi..... More

Print this item

  trying to display custom error message on form
Posted by: mp3909 - Nov-19-2020, 06:35 PM - Forum: Web Scraping & Web Development - No Replies

Hi,

I am trying to display a custom error message when the user enters a wrong password in a login form on my django app.
Currently, when the user..... More

Print this item

  AI based copywriter seeks help
Posted by: ki_entwicklung - Nov-19-2020, 06:14 PM - Forum: Bar - No Replies

Dear group members,

my AI solution UNAIQUE.NET supports researching content and automatically rewriting it using clever copywriting.
In about 5-1..... More

Print this item

  Help with User Interface design code
Posted by: ai_masti - Nov-19-2020, 05:58 PM - Forum: General Coding Help - No Replies

Hello,
I want to design user interface for the following Python game ..... More

Print this item

  2d Array adds last element to entire list
Posted by: waiteup - Nov-19-2020, 05:55 PM - Forum: General Coding Help - Replies (2)

Good Afternoon!

First time poster!

I keep running into this simple problem when trying to fill my 2d array from my SQL. For some reason it will not..... More

Print this item

  showing return from button on main screen
Posted by: blazejwiecha - Nov-19-2020, 05:02 PM - Forum: GUI - Replies (4)

Hello,
first sorry for English and code, I am beginner :)
So , the problem I stuck with is that I wish to execute buttons on the screen of tkinter. ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  pip install requests does... 9 minutes ago misodca adamsmith12 General Codin...
  Little project for someon... 25 minutes ago PeteG trntgl Jobs
  Creating a Mindmap progra... Yesterday, 12:00 J_Miller Pedroski55 General Codin...
  IBKR Purchasing code issu... Yesterday, 09:08 compuman145 compuman145 General Codin...
  A coding beginner needs h... Yesterday, 03:29 Littlefish Littlefish General Codin...
  Is the interpreter that c... Yesterday, 02:36 helendamdam helendamdam General Codin...
  Using a For Loop to subtr... 09-22, 20:56 Anunderling deanhystad General Codin...
  403 Error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
Most views
  The best Prog... 576765
  Tutorial Requ... 499090
  Web Scraping ... 440559
  Newbie with P... 384524
  New Users Int... 368366
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+ 12088
buran 8176
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
adamsmith12 Today
Ronny Today
Luciana Today
MatthewRodia Today
andydt Today

User Panel Messages

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