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,282
» Latest member: MattCarters
» Forum threads: 38,792
» Forum posts: 175,871

Full Statistics

Online Users
There are currently 36 online users.
» 0 Member(s) | 30 Guest(s)
Bing, Google, AOL, Mojeek, Apple

Latest Threads
data fetching for indian ...
Forum: General Coding Help
Last Post: Pedroski55
5 hours ago
» Replies: 1
» Views: 64
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 46
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Nov-21-2025, 06:15 AM
» Replies: 4
» Views: 1,473
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Nov-20-2025, 02:10 PM
» Replies: 2
» Views: 128
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-20-2025, 06:48 AM
» Replies: 0
» Views: 54
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:59 AM
» Replies: 11
» Views: 6,051
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:46 AM
» Replies: 2
» Views: 4,294
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Nov-19-2025, 08:34 PM
» Replies: 3
» Views: 348
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Nov-19-2025, 05:03 AM
» Replies: 1
» Views: 192
PyQt6 QWidgets and system...
Forum: GUI
Last Post: Axel_Erfurt
Nov-18-2025, 06:47 PM
» Replies: 2
» Views: 256

 
  making a generator class?
Posted by: Skaperen - Mar-31-2020, 02:00 AM - Forum: News and Discussions - Replies (2)

we can make a generator function by making a function with a yield statement. what about making a class that way? can i make a class that is a genera..... More

Print this item

  Factorial Code is not working when the given number is very long integer
Posted by: Raj_Kumar - Mar-31-2020, 01:17 AM - Forum: General Coding Help - Replies (2)

Hi,

Below code is to find "Factorial of a given number"

[python]n=int(input("enter a end range: "))
s=1
for i in range(1,n+1):
s=s*i
pri..... More

Print this item

  Selenium cant get elements from HTML(Rookie)
Posted by: Troop - Mar-31-2020, 12:05 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi there

I hope everyone having a great quarantine

Sorry if im breaking any rules my first thread in this forum.. so my apologises.

I been p..... More

Print this item

  Epidemic simulation COVID-19
Posted by: pirogone - Mar-30-2020, 11:55 PM - Forum: Code sharing - Replies (1)

Hi all, I'd like to share with you a bit of code, for those of you who start to look deeper into epidemic simulations.

It is not the best piece of..... More

Print this item

  I don't think my program is producing the correct answer
Posted by: emmapaw24 - Mar-30-2020, 11:48 PM - Forum: General Coding Help - Replies (1)

Hey, I'm pretty new to python so the answer to this might be obvious, but I made this code for an assignment, and while the code is working I don't th..... More

Print this item

  How to print a column name in csv file
Posted by: Truman - Mar-30-2020, 10:10 PM - Forum: Data Science - Replies (1)

Among other things ( open data sets, explore them, print the first few rows and number of rows and columns ) I should print names of columns
my code ..... More

Print this item

  Dynamic return ?
Posted by: JohnnyCoffee - Mar-30-2020, 07:47 PM - Forum: General Coding Help - Replies (2)

I receive in a function two parameters (Class and Method) with dynamic values that serve to reference a certain class and access the method on the ret..... More

Print this item

  Inserting slice of array objects into different slice
Posted by: ThemePark - Mar-30-2020, 07:33 PM - Forum: Data Science - Replies (4)

Suppose I have the following code:
[python]import numpy as np
a=np.zeros((2),dtype=np.object)
b=np.array([[11],[13]])
a[0]=b[0]
a[1]=b[1]
print(a)[/py..... More

Print this item

  How find link element
Posted by: zinho - Mar-30-2020, 07:29 PM - Forum: Web Scraping & Web Development - Replies (3)

I want click on link with text "Toner"
[python]
from selenium import webdriver


adm ='http://10.27.20.49/web/guest/br/websys/webArch/mainFrame.c..... More

Print this item

  AttributeError: 'list' object has no attribute 'g_s'
Posted by: NitinL - Mar-30-2020, 06:29 PM - Forum: Homework - Replies (6)

https://pastebin.com/2L4BChgF

Print this item

  display local images on django website
Posted by: mp3909 - Mar-30-2020, 05:43 PM - Forum: Web Scraping & Web Development - Replies (2)

I am using python Django framework.
Image is not displaying when I run the development server.
This is the code, everything else working fine but im..... More

Print this item

  TypeError indexing a range of elements directly on the list
Posted by: JFerreira - Mar-30-2020, 03:13 PM - Forum: General Coding Help - Replies (2)

Hi,

I am getting an TypeError, and not sure why? My goal is to write on the second and third position of a list . I can do it using a for loop but ..... More

Print this item

  return statement will not work
Posted by: TheTechRobo - Mar-30-2020, 02:54 PM - Forum: General Coding Help - Replies (2)

I have a problem with python 3.x.

I am trying to make a CLI calculator using python 3.x, and tried to use the return statement.

However, even a..... More

Print this item

  another element obscures it
Posted by: windows11 - Mar-30-2020, 02:12 PM - Forum: Web Scraping & Web Development - Replies (1)

selenium.common.exceptions.ElementClickInterceptedException: Message: Element <section class="list-item ng-scope"> is not clickable at point (674,633)..... More

Print this item

  Input error
Posted by: Rayaan - Mar-30-2020, 02:02 PM - Forum: GUI - Replies (1)

I have only just started using tkinter today and I am getting an error which I cannot work out how to solve. I am making a slot machine and I want to ..... More

Print this item

  Translate to noob a Name Eroor message
Posted by: bako - Mar-30-2020, 12:19 PM - Forum: General Coding Help - Replies (2)

What exactly does this mean?

[error]Traceback (most recent call last):
File "waveshare_init.py", line 22, in <module>
if cmd == off:
NameE..... More

Print this item

  I dont know where my local variable has gone
Posted by: Help_me_Please - Mar-30-2020, 11:54 AM - Forum: Game Development - Replies (4)

I am aiming to create a basic maths game, and I am creating a scoring system, after every question right the score should increment, it does so for a ..... More

Print this item

  new font
Posted by: berckut72 - Mar-30-2020, 11:45 AM - Forum: GUI - Replies (2)

Hello!
Please tell me - how can I install in python a new font downloaded from the Internet?

Print this item

  url pattern matching
Posted by: mp3909 - Mar-30-2020, 10:44 AM - Forum: Web Scraping & Web Development - Replies (5)

My url pattern is /music/712/ which I can match using path('music/<int:album_id>/', views.detail, name='detail')

But how do..... More

Print this item

  Selenium cant get xpaths/load url
Posted by: draw134 - Mar-30-2020, 10:11 AM - Forum: Web Scraping & Web Development - Replies (2)

I want to deploy my python script in ubuntu server and call it via cron. In my local windows machine. I tried headless and it is working perfectly fin..... More

Print this item

  Python - help with getting JSON from one DB and load to another DB
Posted by: qIekm - Mar-30-2020, 09:41 AM - Forum: General Coding Help - Replies (4)

New to Python and JSON, I am trying to do the following in Python 3.7:

1.Connect to Oracle database

2.Get data from specific table in proper JSO..... More

Print this item

  connecting data
Posted by: zarize - Mar-30-2020, 09:05 AM - Forum: General Coding Help - Replies (1)

hi guys,

how can i connect data so it would be all together (there should be 100 rows)


however, when i am trying to run the script it shows 200 row..... More


Attached Files

.xlsx   example.xlsx (Size: 9.13 KB / Downloads: 400)
Print this item

  Smoothen reset and write text
Posted by: Bhoot - Mar-30-2020, 07:31 AM - Forum: GUI - Replies (8)

Hi,

I am currently projecting the value as received from a sensor. Now the problem I saw was that on every value change, there is a flicker generat..... More

Print this item

  a Python class for Option
Posted by: deberi - Mar-30-2020, 05:52 AM - Forum: Homework - Replies (5)

Hi people!

I am not so new to python but still need help. I am really motivated to master all round python for finance (quant related).

Can you..... More

Print this item

  Linux: No module named 'wx'
Posted by: PeterLinux - Mar-30-2020, 05:03 AM - Forum: GUI - Replies (23)

When I run my little Python script in the shell, I get the following error:

[error]Traceback (most recent call last):
File "./learn.py", line 6,..... More

Print this item

  why does this happen?can it be bug?
Posted by: ahmet3r - Mar-30-2020, 04:01 AM - Forum: General Coding Help - Replies (1)

>>> print(b"any text")

we have given an input in this way;

output >>> b'any text'


I got SynTaxError when I tried the letter "b" in other le..... More

Print this item

  Class Takes No Arguments
Posted by: horuscope42 - Mar-30-2020, 03:45 AM - Forum: General Coding Help - Replies (4)

[python]
class Car:
"""A simple attempt to represent a car."""

def __int__(self, make, model, year):
"""Initialize the car."""
self.make ..... More

Print this item

  Help For Slot Machine Code
Posted by: Rayaan - Mar-30-2020, 03:36 AM - Forum: General Coding Help - Replies (1)

I am trying to make a slot machine but am getting some errors that I cannot fix. It is giving me the wrong amount of coins for each win and a single d..... More

Print this item

  Calendar program
Posted by: louienyy - Mar-30-2020, 03:18 AM - Forum: Homework - Replies (2)

This is my assignment
calendar program that allows the user to enter a day, month, and year in three separate variables as shown below.

Please ent..... More

Print this item

  Problem with setting variable within a Entry validatecommand
Posted by: kenwatts275 - Mar-30-2020, 02:59 AM - Forum: GUI - Replies (1)

Hello all,
I am trying to set a variable called orig_mb in a validatecommand of an Entry widget.
The validation routine get_records sets [b]o..... More

Print this item

  Text Adventure Game
Posted by: Nave5 - Mar-30-2020, 01:03 AM - Forum: Code sharing - Replies (1)

[python]# Rachele Cort
# Safe Haven
# This code is a survival game where the user must input a decision that will effect the output of the game
pri..... More

Print this item

  Guess the word game help
Posted by: jackthechampion - Mar-30-2020, 12:28 AM - Forum: General Coding Help - Replies (2)

So I have a guess the word game assignment need someone to help me fix it so the asteriks are synced with each word I did it before and just made the ..... More

Print this item

  str.replace affects the if statement!
Posted by: Eslam - Mar-29-2020, 10:01 PM - Forum: General Coding Help - Replies (4)

I have two codes where using str.replace affects the performance of the if statement it lies in.
[i]Can anyone tell me why thi..... More

Print this item

  Concatenate multiple PDFs using python
Posted by: gmehta1996 - Mar-29-2020, 09:45 PM - Forum: General Coding Help - No Replies

I wrote a code to merge pdf files together
Following is my code:
[python]
def merge_pdf(pdf_path,output_pdf):
## Create Logger
logging.basicCo..... More

Print this item

  Help! - How to create a Title for a Reportlab Table
Posted by: crabbylou - Mar-29-2020, 09:14 PM - Forum: General Coding Help - No Replies

Hi, I am trying to create a title for my reportlab table.

[python]
from reportlab.platypus import SimpleDocTemplate, Table, TableStyle, Paragraph,..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  data fetching for indian ... 5 hours ago drakhsin Pedroski55 General Codin...
  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
  best way to learn python 11-18, 16:13 dutch mamta25 News and Disc...
Most views
  The best Prog... 579243
  Tutorial Requ... 512081
  Web Scraping ... 442175
  Newbie with P... 386288
  New Users Int... 379460
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 7389
deanhystad 6915
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
MattCarters Yesterday
drakhsin Yesterday
MileHigh303 11-21
ndx101 11-21
OtiliaBecker 11-21

User Panel Messages

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