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,289
» Latest member: J2M
» Forum threads: 38,793
» Forum posts: 175,881

Full Statistics

Online Users
There are currently 87 online users.
» 2 Member(s) | 80 Guest(s)
Google, Bing, Applebot, AOL, lovedeep, Gribouillis

Latest Threads
PyQt5 - Get a parameter f...
Forum: GUI
Last Post: deanhystad
1 hour ago
» Replies: 5
» Views: 33
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 12:05 PM
» Replies: 5
» Views: 145
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 56
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Nov-21-2025, 06:15 AM
» Replies: 4
» Views: 1,489
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Nov-20-2025, 02:10 PM
» Replies: 2
» Views: 151
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-20-2025, 06:48 AM
» Replies: 0
» Views: 68
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:59 AM
» Replies: 11
» Views: 6,083
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:46 AM
» Replies: 2
» Views: 4,303
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Nov-19-2025, 08:34 PM
» Replies: 3
» Views: 393
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Nov-19-2025, 05:03 AM
» Replies: 1
» Views: 224

 
  Cipher Caesar
Posted by: Azilkhan - Nov-21-2019, 07:27 AM - Forum: Homework - Replies (1)

A cipher is a type of secret code, where you swap the letters around so that no-one can read your message.

You’ll be using one of the oldest and mo..... More

Print this item

  How can create class Person :(
Posted by: Azilkhan - Nov-21-2019, 07:20 AM - Forum: Homework - Replies (1)

Hey guys:)

Who can help me ?
Please guys help me (((((

Create a class Person which has attributes name, age. Creat..... More

Print this item

  lion and hyena
Posted by: Azilkhan - Nov-21-2019, 07:13 AM - Forum: Homework - Replies (2)

Problem 1:

Create a program that will play the “lion and hyena” game with the user.

The game works like this:

Computer randomly generates a 4..... More

Print this item

  convert a .py file to .exe file
Posted by: vigneshboolog - Nov-21-2019, 04:40 AM - Forum: General Coding Help - Replies (12)

Hi i made a pyttsx3 python program which is executed in the run-time but when i convert it into exe it doesn't work.
my code was:-
[
import pyttsx3..... More

Print this item

  How to write a script to execute a program need passing additional input?
Posted by: larkypython - Nov-21-2019, 01:01 AM - Forum: General Coding Help - Replies (2)

I would like the python test.py to run a program after it been compiled to a.out and to read test.dat file:

[python]import subprocess
import os
..... More

Print this item

  While loop doesn't end when False
Posted by: Kanashi - Nov-21-2019, 12:42 AM - Forum: General Coding Help - Replies (2)

I'm following a tutorial on how to code a very simple game. My code looks exactly like in the tutorial (https://youtu.be/kDdTgxv2Vv0?t=2667 for refere..... More

Print this item

  Syntax Error (elif statement)
Posted by: Kanashi - Nov-20-2019, 11:20 PM - Forum: General Coding Help - No Replies

I’m following a tutorial on youtube on how to code a very simple game.
The part of my code which recieves the error looks like this:
[python]player_ch..... More

Print this item

  Reading 2 lines
Posted by: Dyefull - Nov-20-2019, 11:03 PM - Forum: Homework - Replies (1)

Hey guys,

I was wondering how you could make python read 2 lines of input with .readlines() instead of just 1 line. Because the information needed ..... More

Print this item

  binary 2d chart
Posted by: feyristan - Nov-20-2019, 10:18 PM - Forum: Homework - Replies (1)

My assignment is to create a class called "Squares", whose __init__(self, n) creates a table of 2**n by 2**n filled with zeros, and a function "turn(s..... More

Print this item

  Learning techniques.
Posted by: Jan_97 - Nov-20-2019, 09:45 PM - Forum: Bar - Replies (2)

I've been learning python ( & sql) for a few months now. I'm having a little bit of a rough time remember the stuff i go through, main issue seems to ..... More

Print this item

  Module/library recommendation GUI app launcher
Posted by: croyleje - Nov-20-2019, 08:05 PM - Forum: GUI - No Replies

Hi Everyone, I have recently learned python and started working on my first custom program I am making a simple GUI application launcher that displays..... More

Print this item

  Python 2 dimensional array creations
Posted by: sharpe - Nov-20-2019, 07:07 PM - Forum: General Coding Help - Replies (1)

I'm attempting to create my first 2 dimensional array. But I'm not getting the anticipated results:
[python]
import numpy as np
a = [[11,12,13],[21..... More

Print this item

  Simple statistics with range function
Posted by: Pythonlearner2019 - Nov-20-2019, 06:49 PM - Forum: General Coding Help - Replies (2)

Hello,

I am sure this is easy for you guys, i am new here.

I try to use a range function and then get some simple statistics out of this (min,max,su..... More

Print this item

  PIL doesn't seem to paste full size image.
Posted by: DreamingInsanity - Nov-20-2019, 05:05 PM - Forum: General Coding Help - Replies (7)

I have a folder full of images that I crop to a certain size (100x100 in this case) then I average the colour of the images.

[u]Now for a bit of logi..... More

Print this item

  Save a file uploaded from client-side without having to read into memory
Posted by: andym118 - Nov-20-2019, 03:59 PM - Forum: General Coding Help - Replies (3)

When a file is uploaded from the client-side to the server, how can you save this uploaded file without it being read into memory (on a WSGI Python ap..... More

Print this item

  Tkinter Buttons action
Posted by: d3fi - Nov-20-2019, 03:44 PM - Forum: GUI - Replies (1)

First of all, I do not have any code yet to show.

I am new to python and coding in generel, so please if you can, explain in simple english. :).
..... More

Print this item

  Getting an "Unexpected Token" Error and don't know why...
Posted by: NotAHackusator - Nov-20-2019, 02:56 PM - Forum: General Coding Help - Replies (1)

[align=left]I'm currently trying to make a simple program that (for now) detects when you say "Microsoft" and then sends you a link to the microsoft s..... More

Print this item

  Scrap data from not standarized page?
Posted by: zarize - Nov-20-2019, 02:27 PM - Forum: Web Scraping & Web Development - Replies (4)

Hi guys,

I would like to scrap and organize data from html document.
I was learning scrapping and presenting data on different site structure(sho..... More

Print this item

  Can the comments produce errors in python?
Posted by: newbieAuggie2019 - Nov-20-2019, 12:58 PM - Forum: General Coding Help - Replies (9)

Hi!

I'm attaching the outputs of my little programs at the end of the code, as comments, to see quicker what the program does, and also to include ..... More

Print this item

  python logo embroidered on ball cap
Posted by: metulburr - Nov-20-2019, 11:03 AM - Forum: Board - Replies (2)

So i lost my main ball cap embroidered with "linux". Now i want one with a python logo. Im around a lot of "hick-co-workers" and want to show my roots..... More

Print this item

  Kivy Designer Module Error
Posted by: SARAVANAN_M - Nov-20-2019, 09:57 AM - Forum: GUI - No Replies

I'm getting as following error, when try to run the kivy designer application
[b]from kivy.adapters.listadapter import ListAdapter
ModuleNotFou..... More

Print this item

  [split] beginner help
Posted by: AMT59 - Nov-20-2019, 09:31 AM - Forum: General Coding Help - Replies (8)

I am completely new about Python and on this forum. I installed Python 3.8.0 (64-bit), and learned that I need BeautifulSoup for webscraping. So I t..... More

Print this item

  traceback reports "wrong" file and line
Posted by: Skaperen - Nov-20-2019, 07:34 AM - Forum: News and Discussions - Replies (5)

technically, it's correct, but useless:
[output]
lt2a/forums /home/forums 5> cat foo.py
a=1
b=2
c=3
d=f'hello {world{}}'
lt2a/forums /home/foru..... More

Print this item

  pyxcel_ods formula
Posted by: eslavko - Nov-20-2019, 07:20 AM - Forum: General Coding Help - Replies (1)

Hello...

Maybe not best forum for this question but let's try.
I want to export hyperlink with pyxcel_ods.
If I read ods file with link and save..... More

Print this item

  How do I calculate a ratio from 2 numbers and return an equivalent list of about 1000
Posted by: Pleiades - Nov-20-2019, 04:47 AM - Forum: General Coding Help - Replies (8)

I was online at this amazing site for equivalent ratios. I would love to mimic or do the same as an output in python, but its a bit over my skills.
..... More

Print this item

  str.endswith(): vague documentation
Posted by: Skaperen - Nov-20-2019, 04:10 AM - Forum: News and Discussions - Replies (4)

reading up on str.endswith() i find the optional arguments start and end to be described vaguely. it does not say how the..... More

Print this item

  making code more readable
Posted by: Skaperen - Nov-20-2019, 03:03 AM - Forum: Bar - No Replies

sometimes i find code with one statement bodies after if or for or else or elif on the same line easier to read. that's because there are fewer lines..... More

Print this item

  Recursion
Posted by: leodavinci1990 - Nov-20-2019, 01:29 AM - Forum: General Coding Help - Replies (7)

[python]def power(n,p):
""" Return n to the power p. Works only for positive integers """
return n*power(n,p-1)
if __name__ == '__main__':
pri..... More

Print this item

  making a module mimic another module
Posted by: Skaperen - Nov-20-2019, 12:41 AM - Forum: News and Discussions - Replies (1)

i want to create a module that mimics another module in a special way. in order to do this i need to create functions in my module with names discove..... More

Print this item

  Call to a print in a defined function
Posted by: leodavinci1990 - Nov-20-2019, 12:40 AM - Forum: General Coding Help - Replies (1)

[python]def fib(n): # write Fibonacci series up to n
"""Print a Fibonacci series up to n."""
a = 0
b = 1
while a < n:
..... More

Print this item

  Pass by reference vs Pass by value
Posted by: leodavinci1990 - Nov-19-2019, 11:41 PM - Forum: General Coding Help - Replies (1)

[python]#What is the output?
val=100
print(val)
def changeVal():
val=99
print(val)
changeVal()
print(val)


#What is the output?
vals=[100,100..... More

Print this item

  New Python learner looking for key word guidance
Posted by: naga - Nov-19-2019, 10:39 PM - Forum: General Coding Help - Replies (2)

Hi, I'm very new to python. I'm seeking some key word in order help me search for the good tutorial(s).

I hope it will make sens... I'm trying to c..... More

Print this item

  "Up to but not including" (My personal guide on slicing & indexing)
Posted by: Drone4four - Nov-19-2019, 10:35 PM - Forum: General Coding Help - Replies (5)

I’m writing a mini guide for myself for future reference on indexing strings and lists and how they compare to parameters that are passed into randint..... More

Print this item

  bar graph
Posted by: prateekshaw - Nov-19-2019, 10:33 PM - Forum: General Coding Help - No Replies

[python]
import matplotlib.pyplot as plt; plt.rcdefaults()
import numpy as np
import matplotlib.pyplot as plt

x_axis_value = ('A', 'B', 'C', 'D'..... More

Print this item

  Columns in a table
Posted by: Reldaing - Nov-19-2019, 09:13 PM - Forum: General Coding Help - Replies (7)

Hi, I'm looking for switching two columns in a table. I made a function , but I doon't know the syntax of an array switching in python . Could you guy..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  PyQt5 - Get a parameter f... 1 hour ago Ninja2112 deanhystad GUI
  data fetching for indian ... Yesterday, 12:05 drakhsin snippsat Web Scraping ...
  Brazil Python Help to aut... 11-21, 20:30 MileHigh303 MileHigh303 Jobs
  My goal to be hired worki... 11-21, 06:15 GnomeSweetGnome mamta25 News and Disc...
  [SOLVED] [BeautifulSoup] ... 11-20, 14:10 Winfried Winfried Web Scraping ...
  How to Implement Real-Tim... 11-20, 06:48 ankitsharma32 ankitsharma32 Web Scraping ...
  How to put my game loop i... 11-20, 04:59 temlotresid6 SledgeNE Game Developm...
  Help with running PvZ Fus... 11-20, 04:46 Barber532 SledgeNE Game Developm...
  Graph Interpolate Difficu... 11-19, 20:34 Tuurbo46 deanhystad General Codin...
  link variable to exc bloc... 11-19, 05:03 Astrobert Gribouillis General Codin...
  PyQt6 QWidgets and system... 11-18, 18:47 stevecoh1 Axel_Erfurt GUI
Most views
  The best Prog... 579292
  Tutorial Requ... 512153
  Web Scraping ... 442197
  Newbie with P... 386306
  New Users Int... 379764
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+ 12109
buran 8196
snippsat 7390
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
J2M Today
jackhunter Today
EmilyCarter Today
xdimbah Today
IsmaelSlalk Today

User Panel Messages

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