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,982
» Latest member: kyleconor797
» Forum threads: 38,733
» Forum posts: 175,570

Full Statistics

Online Users
There are currently 34 online users.
» 0 Member(s) | 28 Guest(s)
Google, Bing, AOL, AOL, Applebot

Latest Threads
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: Pedroski55
1 hour ago
» Replies: 5
» Views: 128
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Today, 03:05 AM
» Replies: 4
» Views: 2,026
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Yesterday, 07:43 AM
» Replies: 2
» Views: 437
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Yesterday, 12:21 AM
» Replies: 2
» Views: 1,076
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,140
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 806
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 3,093
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,540
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 9,130
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,586

 
  Basic function python
Posted by: sernikov - Jan-12-2020, 07:38 PM - Forum: General Coding Help - Replies (9)

Hi everyone I'm new to this world and I would appreciate any advice or answer would be better for me if answer would be given in order of numbers some..... More

Print this item

  python works on python 2 but not 3
Posted by: pythonbegginer - Jan-12-2020, 07:09 PM - Forum: GUI - Replies (1)

hi, i am trying to open a blank window with tkinter. I am using this code for python 3
[python]
import tkinter
root = tkinter.Tk()
print ("test")..... More

Print this item

  How do I generate reports in pdf format?
Posted by: okbeat9 - Jan-12-2020, 06:00 PM - Forum: General Coding Help - Replies (2)

I have a template that is of A4 landscape size and the data to be filled in it is in a csv file. Basically ..... More

Print this item

  Why do I have an infinite loop?
Posted by: xBlackHeartx - Jan-12-2020, 05:53 PM - Forum: Game Development - Replies (11)

I'm developing a program that will simply generate all the possible colors if I restrict the rgb values to multiples of 51. Its working out so far, bu..... More

Print this item

  Dataframe.hist() labels overlapping graphs
Posted by: RawlinsCross - Jan-12-2020, 04:58 PM - Forum: Data Science - Replies (2)

Good day,

I have a csv file that has a header row. When I put it into a dataframe and run the .hist() I get a the labels for the individual graphs..... More

Print this item

  Problem when moving game window
Posted by: michael1789 - Jan-12-2020, 04:25 PM - Forum: Game Development - Replies (17)

When I start the program, the widow often opens off to the side and I need to move it to see the whole thing. I click the title bar, move the window,..... More

Print this item

  homework - banking system
Posted by: Massimo16 - Jan-12-2020, 04:23 PM - Forum: Homework - Replies (2)

i need to search customers by their last name in order to allow the admin user to have access to the customers account.
i have already created the ad..... More

Print this item

  How to apply VLookup formula
Posted by: jonzee - Jan-12-2020, 03:30 PM - Forum: General Coding Help - Replies (2)

Hello,

I am learning to apply VLookup in Python and in this short example trying to pull full names of the states when I pass the short names. For ..... More

Print this item

  numpy problem
Posted by: nats - Jan-12-2020, 02:54 PM - Forum: Homework - No Replies

Hi, my task is to enter two matrices in form of numpy array, which are same dimension (nxn) and their elements are less or equal n. Then I need to ove..... More

Print this item

  [PIL] standard deck of cards
Posted by: joe_momma - Jan-12-2020, 02:51 PM - Forum: Code Review - Replies (5)

This script uses PIL, creates a directory and makes 52 images(.png) of playing cards.
I tested it on linux and windows NOT OS but left the placeholde..... More

Print this item

  Tkinter Checkbox
Posted by: niro_one - Jan-12-2020, 02:05 PM - Forum: GUI - Replies (1)

Hello ultimately this GUI will wrap arcs onto cylinders. Continuous linear+rotary. I have the math done (requires touch improvement). Cannot get check..... More

Print this item

  Update a combobox
Posted by: LagratteCchouette - Jan-12-2020, 01:44 PM - Forum: GUI - No Replies

Hello,

Please, how do I update a combobox so that after entering a data item I return it to the drop-down list without having to restart the..... More

Print this item

  homework - banking system
Posted by: Massimo16 - Jan-12-2020, 12:45 PM - Forum: Homework - Replies (1)

i need help with my python code as i am new to python...iam getting an error message when i run the file 'BankSystem' object has no attribute 'run_mai..... More

Print this item

  [split] question about list comprehension
Posted by: Armin - Jan-12-2020, 12:24 PM - Forum: General Coding Help - Replies (17)

Hello everyone I hope someone can explain this cod to me Confused there is the variable y [ ] – list how this code works. hope I'm not too boring..... More

Print this item

  Loop does not work in python
Posted by: Ola92 - Jan-12-2020, 10:12 AM - Forum: Homework - Replies (11)

It seems that my loop function does not work and I do not understand why..
I get a result 2 and I should get this list of number:2 2 2 2 1 2 1 1 2 1...... More

Print this item

  Why the this extend example is printing 2 two times?
Posted by: sbabu - Jan-12-2020, 04:39 AM - Forum: General Coding Help - Replies (1)

Why the this extend example is printing 2 two times?

[python]def my_fun(x):
for k in range (len(x)):
print('k is ',k)
x.exte..... More

Print this item

  smallest Cosine distance in Graph
Posted by: vino689 - Jan-12-2020, 03:58 AM - Forum: General Coding Help - Replies (3)

my problem is to list the smallest Cosine distance in Graph
S= [(1,2),(3,4),(-1,1),(6,-7),(0, 6),(-5,-8),(-1,-1),(6,0),(1,-1)] # these are the list o..... More

Print this item

  MRO About super()
Posted by: catlessness - Jan-11-2020, 11:53 PM - Forum: General Coding Help - Replies (1)

[python]class A():
def __init__(self):
print('enter A')
print('leave A')


class B(A):
def __init__(self):
pri..... More

Print this item

  Regex won't replace character with line break
Posted by: Tomf96 - Jan-11-2020, 07:40 PM - Forum: General Coding Help - Replies (2)

using python 3.8.1

I am trying to write a string to a csv file. Before I write the string, however, I want to add line breaks into the string.

mystr..... More

Print this item

  Problem with scrapy/python
Posted by: AndriannaTs - Jan-11-2020, 05:12 PM - Forum: Homework - Replies (2)

Hello. I am beginner with scrapy library. I am trying to run the following code:

[python]]import scrapy

class QuoteSpider(scrapy.Spider):
n..... More

Print this item

  Code problems
Posted by: nats - Jan-11-2020, 03:16 PM - Forum: Data Science - Replies (3)

Hi, I'm having problems so I hope someone can help. I have two matrices (2d numpy arrays) and I need to make third one by overlapping first two matric..... More

Print this item

  The python script is continuously running
Posted by: randeniyamohan - Jan-11-2020, 02:06 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi, I am trying to build a web crawler to extract all the links on a webpage. I have created 2 python files. (class: scanner.py and object: vulnerabil..... More

Print this item

  Help with making a formula using variables that I have declared within for loops.
Posted by: Tomf96 - Jan-11-2020, 01:59 PM - Forum: Data Science - Replies (2)

I am using python 3.8.1 and pandas.

I have two sets of data as csv files. orders.csv and vouchers.csv. Using vouchers.csv I have grouped the datafr..... More

Print this item

  Pyinstaller - I can't drag and drop into the CMD terminal anymore..
Posted by: aquerci - Jan-11-2020, 01:17 PM - Forum: General Coding Help - Replies (4)

Hi guys, I wrote a script in Python 3 and it works. When I start my script ".py" a cmd terminal appears and from there I'm able to drag and drop a fil..... More

Print this item

  Creating a List with many variables in a simple way
Posted by: donnertrud - Jan-11-2020, 12:25 PM - Forum: General Coding Help - Replies (1)

Hi guys,

I am currently working on a regression task with python. My model contains 26 variables, 17 of them are dummy variables.
With that model I a..... More

Print this item

  Changing from blocks to pictures
Posted by: BanditEagle - Jan-11-2020, 11:25 AM - Forum: Game Development - Replies (3)

Dear fellow Python coders,

I have created a platformer where all of the graphics are blocky, but they are just pixels I coded. For example, for the..... More

Print this item

  Playing mp3 with pyglet
Posted by: constantin01 - Jan-11-2020, 10:41 AM - Forum: General Coding Help - Replies (3)

Hi

I use pyglet to play songs in wav and mp3 formats. According to docs of Pyglet, I should install ffmpeg, so I did it but problem is:


[python]
p ..... More

Print this item

  How to print the 2nd column of a searched string in a csv
Posted by: ptey07 - Jan-11-2020, 10:07 AM - Forum: General Coding Help - Replies (2)

Hi there can someone help

i am trying to search for a file name in a csv (in Column A) then when it finds it print just the 2nd column (Colum B) not ..... More

Print this item

  Panel Data Cleaning Drop Identity
Posted by: luxlambo - Jan-11-2020, 09:39 AM - Forum: Data Science - Replies (1)

Dear all,

I am struggling to drop the complete identity in a Panel data set when the identity has a missing time value in the given range.
In thi..... More

Print this item

  Explaining "translate" method
Posted by: lummers - Jan-11-2020, 07:35 AM - Forum: Homework - Replies (4)

Hello,

I am working through some textbook exercises and was given the task:

[i]Write a program that allows a user to type in a phrase and provides..... More

Print this item

  What is the bestway to learn Python?
Posted by: PythonRIMD - Jan-11-2020, 04:06 AM - Forum: General Coding Help - Replies (2)

What is the best way to learn Python?
=====================================

Thanks for looking into my thread.

I downloaded Eclipse & PyDev to ..... More

Print this item

  Clear button in calculator
Posted by: lucasbrino - Jan-10-2020, 09:30 PM - Forum: Homework - Replies (2)

Hey! I have just started a python course and Im having a hard time to put a clear button on my calculator! Thanks for helping!
This is my code:

[p..... More

Print this item

  Tkinter scaling windows conten to or with its size not working
Posted by: Detzi - Jan-10-2020, 07:00 PM - Forum: GUI - Replies (5)

Good Day,
i want tkinter to scale whatever is in its frame to the size of the window. Maybe pictures make more clear what i want:
This is the way th..... More

Print this item

  opening /dev/null
Posted by: Skaperen - Jan-10-2020, 06:40 PM - Forum: News and Discussions - Replies (2)

is it true that when opening /dev/null for read, write, or append, it doesn't really do any syscalls, but just changes some function reference around ..... More

Print this item

  Sorting Arrays in Ascending
Posted by: vino689 - Jan-10-2020, 05:40 PM - Forum: General Coding Help - Replies (8)

[1.4472136]
[1.28]
[1.98994949]
[0.00211989]
[1.8]
[0.63960072]
[0.85857864]
[0.4]
[0.01005051]

Hi , I just want to Sort the above in Ascen..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Parse Markdown / get the ... 1 hour ago SpongeB0B Pedroski55 General Codin...
  Error: cannot mix str wit... Today, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... Yesterday, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... Yesterday, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... 09-29, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
  My First App 09-27, 10:53 BCopeland64 carlbidwell Code Review
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
Most views
  The best Prog... 577451
  Tutorial Requ... 501052
  Web Scraping ... 441079
  Newbie with P... 385149
  New Users Int... 369750
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+ 12092
buran 8178
snippsat 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
kyleconor797 Today
miriamwilliam Today
Davidkiplimo Today
Joliekeva Today
silversimon2 Yesterday

User Panel Messages

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