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,246
» Latest member: isla123456
» Forum threads: 38,779
» Forum posts: 175,813

Full Statistics

Online Users
There are currently 49 online users.
» 0 Member(s) | 42 Guest(s)
Google, Bing, AOL, Facebook, Facebook Dev

Latest Threads
New to python and coding
Forum: Homework
Last Post: Larz60+
2 hours ago
» Replies: 1
» Views: 28
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
2 hours ago
» Replies: 11
» Views: 221
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
2 hours ago
» Replies: 3
» Views: 85
Backward compatibility qu...
Forum: News and Discussions
Last Post: Gribouillis
7 hours ago
» Replies: 5
» Views: 215
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 05:37 AM
» Replies: 1
» Views: 80
Data Science
Forum: Data Science
Last Post: mamta25
Yesterday, 05:27 AM
» Replies: 3
» Views: 2,597
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 169
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 164
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,708
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,403

 
  printing a string in reverse
Posted by: Skaperen - Nov-20-2021, 12:35 AM - Forum: General Coding Help - Replies (2)

i have a string in a variable x. i want to print that string in reverse order. like:
[output]
>>> x = 'foobar'
>>> print(rev(x))
raboof
>>>
[/..... More

Print this item

  python-3.10.0-amd64 build corrupt?
Posted by: lohphat - Nov-19-2021, 10:05 PM - Forum: News and Discussions - Replies (4)

I installed the python-3.10.0-amd64 package and whenever I try to play a YT vid in a browser, my system would hang. Uninstalling this build fixes the ..... More

Print this item

  Dictionary Referencing
Posted by: nickdavis2017 - Nov-19-2021, 08:27 PM - Forum: General Coding Help - Replies (1)

Hi all,

I'm writing a pretty rudimentary code that essentially plays chess with itself. Dictionaries are the data types used to contain all of the ..... More


Attached Files

.txt   ChessBoard.txt (Size: 566 bytes / Downloads: 313)
.py   ChessUDF.py (Size: 7.75 KB / Downloads: 319)
.py   Robots Play Chess 1.2.py (Size: 2.07 KB / Downloads: 321)
Print this item

  Flask basics... url
Posted by: ifigazsi - Nov-19-2021, 05:40 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi!
When I render the movie.html page, is it possible to change the url as well?

Thank you!

[python]
from flask import Flask, render_template,..... More


Attached Files

.html   movie.html (Size: 336 bytes / Downloads: 390)
Print this item

  Sudden Problem with pexpect
Posted by: gw1500se - Nov-19-2021, 03:49 PM - Forum: General Coding Help - Replies (3)

I have a script the uses pexpect that has been working for years (common story, right?) that suddenly is failing. When I run the command manually I fi..... More

Print this item

  Sum the values in a pandas pivot table specific columns
Posted by: klllmmm - Nov-19-2021, 03:04 PM - Forum: General Coding Help - Replies (1)

I have created a pivot table with multiple index as follows:
[python]
df1 = pd.DataFrame(data = {'Customer':['Tom Ford','Susan Mock','Tom Ford','Tom..... More

Print this item

  UI modules: which is most suitable for macOS app design?
Posted by: Anon_Brown - Nov-19-2021, 01:42 PM - Forum: GUI - Replies (1)

Hi all,
I've been developing a music player app for macOS. I initially used the Tkinter module to implement its GUI. However, I noticed its visual de..... More

Print this item

  How to access parent object attribute
Posted by: Pavel_47 - Nov-19-2021, 09:45 AM - Forum: General Coding Help - Replies (2)

Hello,
There are class A and class B.
Class B is inherited from A:

class B(A):
How to access attribut..... More

Print this item

Exclamation Debian 10 Buster Environment - Python 3.x (MariaDB 10.4.21) | Working Connector?
Posted by: BrandonKastning - Nov-19-2021, 06:49 AM - Forum: Web Scraping & Web Development - Replies (9)

Hello again everyone! Admins, Mods (Thank you again for the prior threads, btw).

I am now up against parsing a huge amount of Data and the only wa..... More

Print this item

  Split string
Posted by: knob - Nov-19-2021, 03:15 AM - Forum: General Coding Help - Replies (2)

Hello ! I'm looking for a way to approach the result below.
Basically it consist in move the number at the end of each line (including the K) from t..... More

Print this item

  module detecting if imported vs not
Posted by: Skaperen - Nov-19-2021, 02:30 AM - Forum: General Coding Help - Replies (1)

how can a module detect if it is being imported, possibly by a command script, as opposed to being run directly?

Print this item

  a tree command using Shell Script that displays all the directories recursively
Posted by: apollo - Nov-18-2021, 09:05 PM - Forum: Bar - Replies (1)

Good day dear Python-experts, hello everyone


hope that youre all right and all goes well at your side.

i want to simulate a tree command usi..... More

Print this item

  Access instance of a class
Posted by: Pavel_47 - Nov-18-2021, 03:28 PM - Forum: General Coding Help - Replies (5)

Hello,

In my project there is a lot of different classes, created in different .py files.
To implement some feature I need to dynamically change a..... More

Print this item

  Capture json data
Posted by: JohnnyCoffee - Nov-18-2021, 03:19 PM - Forum: General Coding Help - No Replies

I'm sending form data using JavaScript through Ajax in Json format to the python script ( wsgiref ), so it can capture this data and return the respon..... More

Print this item

  access share attributed among several class methods
Posted by: drSlump - Nov-18-2021, 03:02 PM - Forum: General Coding Help - No Replies

I have developed a GUI using tkinter with python 3.9. It works but I am facing the following problem. When I activate/deactivate one of the defined ch..... More


Attached Files

Thumbnail(s)
   
Print this item

  Why can't I display these dataframes?
Posted by: brady951 - Nov-18-2021, 02:24 PM - Forum: Data Science - No Replies

I'm trying to take an average reading of radio scans I took at different locations. As I understand it I should have created a list of 5 dataframes. I..... More

Print this item

  PySimpleGUI Try Except
Posted by: jamesaarr - Nov-18-2021, 01:37 PM - Forum: GUI - Replies (1)

Hi all,

I'm trying to get my program to try to make a layout with an sg.Image element, however the file path is a variable so it can update the ima..... More

Print this item

  oij
Posted by: allampro16 - Nov-18-2021, 01:27 PM - Forum: Web Scraping & Web Development - No Replies

jedjed

Print this item

  Enum help
Posted by: SephMon - Nov-18-2021, 12:13 PM - Forum: General Coding Help - Replies (3)

How can I pass an Enum into a constructor of a class? so the children classes can use it as well
[python]
class Employee(ABC5):


employ..... More

Print this item

  Cool game made with pygame
Posted by: Milosz - Nov-18-2021, 10:27 AM - Forum: Code Review - Replies (3)

Hello,
I've finished my game which gonna be in my python programmer portfolio. I did my best but it's my first project and I'm not sure if it's well ..... More

Print this item

  Not listen for multi clicks
Posted by: dipbox - Nov-18-2021, 09:28 AM - Forum: GUI - Replies (2)

Hi, I have Kivy app that sometimes making some heavy stuff.
It makes the user to sometimes click/touch two/three times, but I wish to ignore this cli..... More

Print this item

  Issue with program not passing to other elif condition
Posted by: Abdirahman - Nov-18-2021, 09:27 AM - Forum: General Coding Help - Replies (6)

Hello

I am new to this forum and programming in general.

I am trying to create BMI calculator. the issue is that no matter what I do the progra..... More

Print this item

  What should i do, for this code to work -> description
Posted by: hamad - Nov-18-2021, 09:04 AM - Forum: General Coding Help - Replies (2)

What needs to be fixed? so that the part after else works the same way as the part before it, i.e. a question is asked and an answer is given...... More

Print this item

  Can't convert integer values to float values for Pong
Posted by: game_slayer_99 - Nov-18-2021, 06:37 AM - Forum: Game Development - Replies (1)

I've been working on my own version of Pong, and at the moment, I have been working on getting the ball to bounce off of the four sides of the screen...... More


Attached Files

Thumbnail(s)
   
Print this item

  Already existing script (GitHUB TIkUp) few lines of customizing. 10 USD$ Paypal
Posted by: MurphysLaw - Nov-18-2021, 05:39 AM - Forum: Web Scraping & Web Development - No Replies

https://github.com/Coloradohusky/TikUp

I already have YouTube Channel branding overlay to go over every video Uploaded to that channel. I have a Li..... More

Print this item

  compiling numpy, getting C source
Posted by: Skaperen - Nov-17-2021, 08:29 PM - Forum: News and Discussions - Replies (10)

i read that some of numpy is written in C. i want to compile that code myself. i could not find C source code within numpy (installed via pip). whe..... More

Print this item

  Finite difference scheme in python
Posted by: erdemath - Nov-17-2021, 03:19 PM - Forum: Data Science - No Replies

I am trying to develop central finite difference scheme (lexicographical) coefficients. My code is,

[python]
import numpy as np
from scip..... More

Print this item

  PyCharm dir() not displaying output
Posted by: bodisha - Nov-17-2021, 02:37 PM - Forum: General Coding Help - Replies (2)

Trying to figure out Python and PyCharms isn't acting how I'm expecting it too.... and the dir() function isn't producing any output for me. When I r..... More

Print this item

  Replying to a Javascript/jQuery
Posted by: gw1500se - Nov-17-2021, 02:31 PM - Forum: Web Scraping & Web Development - Replies (16)

I am trying to automate a web response. My problem is that I am not a javascript/jQuery expert and I have found that this web page apparently wants a ..... More


Attached Files

.txt   jquery.txt (Size: 146.92 KB / Downloads: 334)
Print this item

  Model of supply and demand
Posted by: maeva - Nov-17-2021, 12:38 PM - Forum: General Coding Help - Replies (4)

Hello, can you help me figure out what is the problem in this code?
In a model of supply and demand,

the supply is:

Qs = P**a + P + 1

And th..... More

Print this item

  Using Python Embedded with Flask Restplus API : to deploy on IIS
Posted by: gaurav_umang - Nov-17-2021, 11:38 AM - Forum: Web Scraping & Web Development - Replies (1)

I am trying to deploy a flask restplus api on IIS with embedded python. Basically we want it to be like a complete package, to be able to run directly..... More


Attached Files

Thumbnail(s)
   
Print this item

  Not able to add extra column to the list in the python
Posted by: shantanu97 - Nov-17-2021, 06:45 AM - Forum: General Coding Help - Replies (2)

I have two excel files, and I wanted to append those files into one. But I also want to add a work book name of excel file into a column "SourceFile"...... More


Attached Files

.xlsx   VY6_Row1_report_url.xlsx (Size: 8.57 KB / Downloads: 339)
.xlsx   VY6_Row2_report_url.xlsx (Size: 8.07 KB / Downloads: 313)
Print this item

  EasySNMP Walk/BulkWalk
Posted by: pylance - Nov-17-2021, 03:36 AM - Forum: General Coding Help - Replies (3)

Hello,
1st post for me, new to python.. very new..
I am working on a project and need a little help.
I am only getting 1 results with any of the ..... More

Print this item

  difference between codes
Posted by: francheska - Nov-17-2021, 02:38 AM - Forum: General Coding Help - Replies (1)

What is the difference between these two codes?


[python]
while True:
try:
List1 = input()
List2 = []
correct = F..... More

Print this item

  style guies on utf-8 non-ascii characters
Posted by: Skaperen - Nov-17-2021, 01:28 AM - Forum: News and Discussions - No Replies

what do various style guides (such as PEP 8) say about the use of non-ASCII (ord(ch) > 127) Unicode characters encoded in UTF-8 in Python source code ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  New to python and coding 2 hours ago lary_p Larz60+ Homework
  [Tkinter] I’m building a ... 2 hours ago tsgiannis tsgiannis GUI
  Help with Serial.write in... 2 hours ago racingsubby Larz60+ General Codin...
  Backward compatibility qu... 7 hours ago yutaozhou Gribouillis News and Disc...
  [split] print two differe... Yesterday, 05:37 Reema Gribouillis General Codin...
  Data Science Yesterday, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
Most views
  The best Prog... 578784
  Tutorial Requ... 509644
  Web Scraping ... 441895
  Newbie with P... 385882
  New Users Int... 375708
Most reputation
buran 581
snippsat 510
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+ 12105
buran 8195
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
isla123456 Today
vibrometro Today
thebigback Yesterday
dimitriwati Yesterday
johnsonlucas83 Yesterday

User Panel Messages

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