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,987
» Latest member: asamulswift9609
» Forum threads: 38,736
» Forum posts: 175,577

Full Statistics

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

Latest Threads
Scwarzcohenlaw Site
Forum: General Coding Help
Last Post: asamulswift9609
25 minutes ago
» Replies: 0
» Views: 3
print does not open conso...
Forum: General Coding Help
Last Post: Tycho_2025
2 hours ago
» Replies: 0
» Views: 19
Fred Economic Data API
Forum: Web Scraping & Web Development
Last Post: Trickety
3 hours ago
» Replies: 3
» Views: 2,518
create ocr to detect lice...
Forum: General Coding Help
Last Post: noisefloor
4 hours ago
» Replies: 2
» Views: 67
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: noisefloor
4 hours ago
» Replies: 6
» Views: 179
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Yesterday, 03:05 AM
» Replies: 4
» Views: 2,040
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 455
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Sep-30-2025, 12:21 AM
» Replies: 2
» Views: 1,085
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,153
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 836

 
  Printing on same line from 2 functions.
Posted by: Dyefull - Dec-03-2019, 12:56 PM - Forum: Homework - Replies (2)

Hey guys quick question,

this is the code that I've written so far:

[python]total = 0

def print_student(student):
informatie_student = s..... More

Print this item

  How to get the index of a character from a string
Posted by: chihaya - Dec-03-2019, 12:43 PM - Forum: General Coding Help - Replies (1)

Hi, i used this code it is getting the index value but i need it to get the index value as the expected output
[python]s = 'Apples are totally awesom..... More

Print this item

  Help code explanation
Posted by: salwa1215 - Dec-03-2019, 11:14 AM - Forum: Networking - Replies (1)

Hello, I would like to understand what this code does, please.

I understood that it opens a connection with a machine by creating a socket in whic..... More

Print this item

  Image convoluion
Posted by: HuntahSVK - Dec-03-2019, 11:08 AM - Forum: General Coding Help - Replies (5)

Hi, im a student of software engineering and i've been tasked to apply convolutions to images.
I have to use the basic convolution kernels that are o..... More

Print this item

  prefix to infix
Posted by: rontoto - Dec-03-2019, 11:05 AM - Forum: General Coding Help - Replies (4)

Hello, i have got a rpbolem with prefix to infix code.
I need to change this code, so it can work with input like this: +-4 2 3 or *4-2 3
and the ..... More

Print this item

  How do I name a list while generating numbers on the fly?
Posted by: Pleiades - Dec-03-2019, 10:53 AM - Forum: General Coding Help - Replies (6)

I use this code and it generates numbers in the list, but I would also like it create this name along with it for the list name.

This is the name I..... More

Print this item

  Dictionary in Python
Posted by: kartheek - Dec-03-2019, 10:45 AM - Forum: General Coding Help - Replies (3)

Hi,

I am new to Python so please bear me for this simple question but I really could n't find reason for this.

[python]
current = {}
new_dict ..... More

Print this item

  pdf file processing: how to "Enable Editing"
Posted by: Pavel_47 - Dec-03-2019, 10:36 AM - Forum: General Coding Help - Replies (6)

Hello,

When opening some pdf files, the following banner appears at the top:

[img]https://i.postimg.cc/FzSJ3Nrf/pdf-enable-editing-banner.jpg[/i..... More

Print this item

  Reading UDP from external device without device software
Posted by: ikdemartijn - Dec-03-2019, 09:50 AM - Forum: General Coding Help - Replies (2)

Hello everyone,

Before I get to my actual problem, here is some background for the project in which this problem occurs:
I am trying to control a ..... More

Print this item

  Can’t get program to run properly
Posted by: ITnet20 - Dec-03-2019, 05:35 AM - Forum: General Coding Help - Replies (11)

#Program is written in python

from datetime import date
def calculateAge(birthDate):
today = date.today()
age = today.year - birthDate.year - ((..... More

Print this item

  The difference between two functions
Posted by: Motley_Cow - Dec-03-2019, 12:11 AM - Forum: General Coding Help - Replies (2)

I am a newbie to python and going through the NLTK book to learn a bit about using python for natural language processing. This post is not about NLTK..... More

Print this item

  Possible to use asyncio as a faster while loop?
Posted by: JackMack118 - Dec-03-2019, 12:09 AM - Forum: General Coding Help - Replies (1)

I've made this loop to pull random 1000 lines (made in other part of code) into a Textbox. It works flawlessly, though it takes maybe 10 seconds to do..... More

Print this item

  random module lacks instantiation
Posted by: Skaperen - Dec-02-2019, 11:14 PM - Forum: News and Discussions - Replies (3)

i don't see any way to make instances of the random module main class. when re-running sequences from the original seed, this makes it easy to have 2..... More

Print this item

  Live Server on VSCode
Posted by: Larz60+ - Dec-02-2019, 10:19 PM - Forum: Web Scraping & Web Development - Replies (6)

I am developing a Flask site and using Live Server plugin.
Examples that I have seen show the browser opening within VSCode, when 'Open with Live Ser..... More

Print this item

  Python + GTK + AppIndicator3 tray submenu Icon
Posted by: nodefive - Dec-02-2019, 08:37 PM - Forum: GUI - Replies (5)

I do not program in python, therefore the question. With some help from another post I was able to put this tray menu together, works ok.

How can ..... More

Print this item

  How to make a telegram bot respond to the specific word in a sentence?
Posted by: Metodolog - Dec-02-2019, 07:44 PM - Forum: General Coding Help - Replies (2)

So, I'm trying to make my bot respond whenever a certain word is said in a sentence (the language is Serbian), so I made this code:

[python]if (messa..... More

Print this item

  Python and Vb_net
Posted by: njsg - Dec-02-2019, 07:35 PM - Forum: General Coding Help - Replies (1)

I'm new to python. I'm currently programing in VB.net using visual studio 19. I noticed that Python has some fantastic functions dealing with astrono..... More

Print this item

  Multiplex lists using zip
Posted by: Clunk_Head - Dec-02-2019, 03:23 PM - Forum: General Coding Help - Replies (12)

This is just a curiosity. Is there a way to use zip to replace the list comprehension in this code?

[python]
values = list(range(2,11)) + ['J', 'Q..... More

Print this item

  item = index position - list of list
Posted by: RavCOder - Dec-02-2019, 02:45 PM - Forum: General Coding Help - Replies (9)

Hi,


I have a list of lists taken from a text file.
I would like to add the elements that are in the second and third position,but these are not sim..... More

Print this item

  Process execution using Popen
Posted by: Shaswat - Dec-02-2019, 01:15 PM - Forum: General Coding Help - Replies (2)

Hi Everyone,

Good Day!

I learn few things about how to create new process using Subprocess module in Python. Indeed, I am more curious to know i..... More

Print this item

  Errors in code
Posted by: coolcassie - Dec-02-2019, 12:51 PM - Forum: General Coding Help - Replies (2)

Hi,

I've been trying to figure out what I need to edit in this code to make it run properly. I wasn't sure where to post this in the forums so just..... More

Print this item

  Finding out roots of Chebyshev's polynomials
Posted by: player1681 - Dec-02-2019, 11:48 AM - Forum: Data Science - Replies (2)

Hello everyone.

I am constructing Chebyshev polinomials as ..... More

Print this item

  Does not print name after input name
Posted by: Manjushri - Dec-02-2019, 11:18 AM - Forum: General Coding Help - Replies (1)

Hello Python World. :) This is my first post. I have only started to learn Python on my own and am quite isolated so questions I will be asking will b..... More

Print this item

  using class functions in roguelike game
Posted by: trousers1 - Dec-02-2019, 10:25 AM - Forum: General Coding Help - Replies (3)

I'm struggling to know an exercise from my python book on game architecture. This is for roguelike game structure.

It is an follows:


define a ..... More

Print this item

  Grid. How to close the cell editor?
Posted by: ioprst - Dec-02-2019, 07:42 AM - Forum: GUI - Replies (1)

How to implement closing your own cell editor when it loses focus? Since the built-in wx editors work.

Now my editor closes only if you select anot..... More

Print this item

  Getting attributes from a list containing classes
Posted by: midarq - Dec-02-2019, 06:49 AM - Forum: General Coding Help - Replies (2)

Hi!

I have a small problem:

I defined a class Tone which inherits from the class Recorder. (i.e. a recorder is an instrument which has many note..... More

Print this item

  key=value style command argument parser
Posted by: Skaperen - Dec-02-2019, 05:55 AM - Forum: News and Discussions - Replies (10)

for a command that will use command line arguments like key=value for all arguments, is there an available parser?

Print this item

  Python newbie
Posted by: ThePantheonHatesTacos - Dec-02-2019, 05:09 AM - Forum: News and Discussions - Replies (19)

I'm not sure the off topic board is the perfect place for my question, but. I want to learn Python if anyone can suggest a starting point I'd be glad ..... More

Print this item

  Zoo class
Posted by: saaat - Dec-02-2019, 03:23 AM - Forum: Homework - Replies (3)

hi'
i need to built a class for zoo
and i need some help

that is the code so far
==================

[python]class Animal:
..... More

Print this item

  re: normalize of mac address
Posted by: ogogon - Dec-01-2019, 11:29 PM - Forum: General Coding Help - Replies (3)

Colleagues, tell me, please, the answer to my question.

I have a variable that contains the mac address.
Here is a regular expression describing i..... More

Print this item

  send a byte of data by bluetooth to arduino using python.
Posted by: x1cygnus - Dec-01-2019, 11:07 PM - Forum: Homework - Replies (1)

I have to construct car that can move based on the result the code, so have to send byte of information by bluetooth(using the bluetooth module Hc -05..... More

Print this item

  isinstance() arg2 is limited to a type or a tuple of types
Posted by: Skaperen - Dec-01-2019, 10:46 PM - Forum: News and Discussions - Replies (5)

isinstance() arg2 is limited to a type or a tuple of types. it won't even accept a list of types.

Print this item

  The Zen of Python is not Zen
Posted by: ichabod801 - Dec-01-2019, 10:43 PM - Forum: News and Discussions - Replies (10)

As a student of Zen, the Zen of Python has always bugged me. Having been ordained as a lay Zen monk today, I thought I would explain. We are all (most..... More

Print this item

  type of object as a string
Posted by: Skaperen - Dec-01-2019, 10:29 PM - Forum: General Coding Help - Replies (1)

i need to get the type of an object as a string, as in [] -> 'list'. does anything already exist for this or do i need to use my own..... More

Print this item

  promises, promises
Posted by: gpythonc - Dec-01-2019, 10:09 PM - Forum: News and Discussions - Replies (3)

Hi everybody,
Newbie here.

So, they told me that there are thousands of python programs available. Can't find nothing. Not even things like "progr..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Scwarzcohenlaw Site 25 minutes ago asamulswift9609 asamulswift9609 General Codin...
  print does not open conso... 2 hours ago Tycho_2025 Tycho_2025 General Codin...
  Fred Economic Data API 3 hours ago warrior42 Trickety Web Scraping ...
  create ocr to detect lice... 4 hours ago bimosora noisefloor General Codin...
  Parse Markdown / get the ... 4 hours ago SpongeB0B noisefloor General Codin...
  Error: cannot mix str wit... Yesterday, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... 09-30, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... 09-30, 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...
Most views
  The best Prog... 577464
  Tutorial Requ... 501212
  Web Scraping ... 441087
  Newbie with P... 385158
  New Users Int... 369814
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
asamulswift9609 Today
Tycho_2025 Today
chikkamagalur Today
Costa Today
bimosora Today

User Panel Messages

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