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,993
» Latest member: lauren557
» Forum threads: 38,736
» Forum posts: 175,588

Full Statistics

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

Latest Threads
Another app idea - intera...
Forum: News and Discussions
Last Post: Biks
7 hours ago
» Replies: 1
» Views: 1,815
My goal to be hired worki...
Forum: News and Discussions
Last Post: Biks
8 hours ago
» Replies: 3
» Views: 1,114
real community
Forum: News and Discussions
Last Post: Biks
8 hours ago
» Replies: 4
» Views: 3,066
print does not open conso...
Forum: General Coding Help
Last Post: Tycho_2025
10 hours ago
» Replies: 5
» Views: 173
create ocr to detect lice...
Forum: General Coding Help
Last Post: Pedroski55
Today, 06:18 AM
» Replies: 4
» Views: 141
Weird failure in Selenium
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 08:57 AM
» Replies: 1
» Views: 90
Fred Economic Data API
Forum: Web Scraping & Web Development
Last Post: Trickety
Oct-02-2025, 03:05 PM
» Replies: 3
» Views: 2,558
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: noisefloor
Oct-02-2025, 01:56 PM
» Replies: 6
» Views: 252
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Oct-01-2025, 03:05 AM
» Replies: 4
» Views: 2,065
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 485

 
  colouring strings
Posted by: newbieAuggie2019 - Sep-17-2019, 03:02 AM - Forum: General Coding Help - Replies (23)

Hi!

Due to time constraints, I'm working with a lot of issues at the same time: f-strings, functions, loops... and I was wondering... with so many ..... More

Print this item

  a conditional with
Posted by: Skaperen - Sep-16-2019, 11:48 PM - Forum: News and Discussions - Replies (1)

i have a case where i'd like to use a with statement opening a file for a body of several statements of code. the catch is that in some cases ..... More

Print this item

  rjust part of a string
Posted by: pythonprogrammer - Sep-16-2019, 11:29 PM - Forum: General Coding Help - Replies (2)

I am trying to use the rjust method to align part of a string in the following text:

for key in breakfast:
print('%s \t %d calories'%..... More

Print this item

  Count in python
Posted by: Debutantdata - Sep-16-2019, 07:31 PM - Forum: General Coding Help - Replies (2)

Dear all,

I am a new joiner in the Python adventure.

I would like to count the data in the column 'Company' and know in which of the 'Selection..... More

Print this item

  Why is this function printing the number of keys in a dictionary?
Posted by: mafr97 - Sep-16-2019, 07:20 PM - Forum: Homework - Replies (5)

This is a HOMEWORK problem, that I am struggling with and want to understand.

We are asked to create a function that will take in a dictionary and ..... More

Print this item

  f-string for caller?
Posted by: Skaperen - Sep-16-2019, 07:17 PM - Forum: News and Discussions - Replies (2)

is there a way to have a f-string in a function or method operate as if it were in the caller's context?

Print this item

  Google calendar pthon flask auth
Posted by: Kireta - Sep-16-2019, 04:50 PM - Forum: Web Scraping & Web Development - No Replies

Hello every one
I'd like first to apologize as english is not my first language
I'm trying to implement a web app using google calendar.
I can succ..... More

Print this item

  Hangman
Posted by: metro17 - Sep-16-2019, 04:35 PM - Forum: General Coding Help - Replies (4)

[python]def split(word):
return list(word)

def cw():
n = 0
print("Welcome to Hangman !")
print("You have 8 guesses left")
..... More

Print this item

  My code is not printing, how do I get it to do so?
Posted by: celtickodiak - Sep-16-2019, 03:30 PM - Forum: Homework - Replies (4)

[Python]
print('Enter number grade.')
grade = input()
if int(grade) < 60:
print('F')
elif int(grade) == (60, 61, 62):
print('D-')
[/Pyt..... More

Print this item

  Where does string.punctuation come from?
Posted by: Mark17 - Sep-16-2019, 03:12 PM - Forum: General Coding Help - Replies (5)

Really, really basic question here...

With regard to this snippet:

[Python]
>>> import string
>>> string.punctuation
'!"#$%&\'()*+,-./:;<=>?@..... More

Print this item

  Software engineer contract, Stockholm, 6 months, 80-100EUR/hour
Posted by: hdefsak - Sep-16-2019, 02:58 PM - Forum: Jobs - Replies (5)

Looking for an experienced software developer who can code, refactor, coach other team members and architect solutions in Python, in the field of data..... More

Print this item

  Python: command “python -m pip install --upgrade pip” doesn't work
Posted by: apollo - Sep-16-2019, 02:10 PM - Forum: General Coding Help - Replies (2)

hello dear experts, 


well i have no idea why the python things do not work here. 

the pc. Win 7

the idea: i want to install the newe..... More

Print this item

  stream audio from pc to pc
Posted by: floatingshed - Sep-16-2019, 02:10 PM - Forum: General Coding Help - Replies (2)

I have googled this for days on end and can't find a satisfactory answer.
I have a library of audio files on a pc. I want to play one of them across ..... More

Print this item

  Getting error from subprocess module
Posted by: swechsler - Sep-16-2019, 02:08 PM - Forum: General Coding Help - Replies (2)

I'm writing a script to log disk usage on all our hosts to a central DB server. This works fine on one host, but on a different host I'm getting an er..... More

Print this item

  Access Flask Web App from External Browser - IIS
Posted by: fioranosnake - Sep-16-2019, 12:32 PM - Forum: Web Scraping & Web Development - Replies (3)

HI,

I have moved over to Python Web Development from aspx and VB. I have create a simple flask web app using vs2019 that runs perfectly in LocalHos..... More

Print this item

  How to get the position of character
Posted by: SriRajesh - Sep-16-2019, 12:11 PM - Forum: General Coding Help - Replies (6)

Hi,

I have two strings
str1 = 'ABCdef'
str2 = 'ABCdaf'
now I want to know which position (character) is different.
Desired output is 4
in str1: e
sam..... More

Print this item

  hide object type in printing
Posted by: shirin - Sep-16-2019, 11:54 AM - Forum: Homework - Replies (2)

Hi
I have an 2d array A.which each elements of it is a list . when I print A, It gives me sth like this:

[list([]) list([]) list([])]
[list([])..... More

Print this item

  Failed to download Qualtrics data using API
Posted by: balaKrishnaV - Sep-16-2019, 11:41 AM - Forum: General Coding Help - Replies (4)

Hi Experts ,

I am new to Python as well as to this forum.
i am trying to download Qualtrics Survey data into CSV format.
some how i was able to d..... More

Print this item

  Implementing OAuth 2 ( 2-legged)
Posted by: krishnanunnik - Sep-16-2019, 10:34 AM - Forum: General Coding Help - Replies (2)

Hi,

I'm fairly new to python. I have a requirement to create a OAuth 2.0 Provider, using 2-legged approach. I saw the 3-legged oauth is available ..... More

Print this item

  When not to use f-strings?
Posted by: newbieAuggie2019 - Sep-16-2019, 02:39 AM - Forum: General Coding Help - Replies (7)

Hi!

I knew nothing about f-strings until on this site somebody suggested them as a more appropriate and straightforward way to print strings. The b..... More

Print this item

  Whats a good design/approach?
Posted by: hshivaraj - Sep-15-2019, 10:11 PM - Forum: General Coding Help - Replies (1)

Hi all.

I have this simple code, which does pretty simple things as open a file within the class. But i cant decide what the best design. Is appro..... More

Print this item

  OpenCV - Segmentation fault
Posted by: samtwilliams - Sep-15-2019, 07:39 PM - Forum: General Coding Help - Replies (6)

Hey All,

I'm getting this error "Segmentation fault" and i'm guessing i'm trying to access something that doesnt exist but i can't find what. When ..... More

Print this item

  Groupby([]).sum() Miscalculation
Posted by: mini_geek - Sep-15-2019, 06:03 PM - Forum: Data Science - Replies (1)

Hi all, this is my first post so please take it easy! Tongue

The following code is dropping data: e.g. SEC figures is missing "1 Insurance/An..... More

Print this item

  Please suggest a good Data Science Book
Posted by: alexwazan - Sep-15-2019, 03:54 PM - Forum: News and Discussions - Replies (3)

Please suggest a good Data Science Book to start with, still this is my to go Best Data Science Books[/ur[url=https://python-forum.io/thread-21126.html]..... More

Print this item

  Trying to prompt user for 2 inputs on one line
Posted by: pythonprogrammer - Sep-15-2019, 02:49 PM - Forum: General Coding Help - Replies (2)

I am trying to see if I can prompt the user for two inputs at once. The code below will prompt the user for the food first and then after that
is ent..... More

Print this item

  error due to version
Posted by: hknarahari - Sep-15-2019, 01:57 PM - Forum: General Coding Help - Replies (2)

I found this python code to read data and create GMSH .geo file. However, when I use it i get an error

[python]
# script to create a .geo file for..... More

Print this item

  What crypt lib should be use in python?
Posted by: linh_py - Sep-15-2019, 01:50 PM - Forum: General Coding Help - Replies (3)

There are many crypt lib in python, i don't know how to choose it? Anyone can help me. Pls

Print this item

  Supscript tag not working.
Posted by: MvGulik - Sep-15-2019, 01:03 PM - Forum: Board - Replies (4)

Text Bold
Text Italic
Text Underscore
Text Strikeout
Text Subscript
Text Supscript

Print this item

  Read each line, replace string and save into a new file
Posted by: igormonteiro - Sep-15-2019, 12:47 PM - Forum: General Coding Help - Replies (2)

I want to replace a string based on each line of list.txt and create a new file with the name of the string collected.

*Content of list.txt*

[ou..... More

Print this item

  Data extraction from (multiple) MS Word file(s) in python
Posted by: Den0st - Sep-15-2019, 11:47 AM - Forum: Homework - Replies (8)

Hello everyone!

I'm learning Python programming as a part of my thesis subject so I'm inexperienced at this moment because I just started. (I do ha..... More

Print this item

  user authentication in python
Posted by: saurabhc - Sep-15-2019, 05:20 AM - Forum: General Coding Help - Replies (1)

I am new to python and need a script for user management in mysql database. It should be able to create new user with some auto generated password . A..... More

Print this item

  addition for elements in lists of list
Posted by: ridgerunnersjw - Sep-15-2019, 02:57 AM - Forum: General Coding Help - Replies (3)

Can someone please show me how to do the following addition? I have a matrix k
k = [[[4,3], [3,1], [2,0]], [[0,1], [1,2], [3,3]]]

I would like a ..... More

Print this item

  Importing a .png image
Posted by: Myang123 - Sep-15-2019, 01:42 AM - Forum: Game Development - Replies (3)

I am trying to create a class called Ship in a separate .py file and I am trying to import its associated .png image (ship.png) into my Pygame file an..... More

Print this item

  8-bit integer to bytes
Posted by: Garitron - Sep-14-2019, 10:45 PM - Forum: General Coding Help - Replies (1)

Hello...

I am attempting to use a Python3 library function that requires a binary parameter (bytes or bytearray).

When I submit a parameter such..... More

Print this item

  Declaring a Global Variable in a Function
Posted by: Bob1948 - Sep-14-2019, 10:12 PM - Forum: General Coding Help - Replies (4)

I am sorry. I know that this is probably a stupid question. But I am just learning Python and have spent hours trying to figure out what I am doing ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Another app idea - intera... 7 hours ago decuser Biks News and Disc...
  My goal to be hired worki... 8 hours ago GnomeSweetGnome Biks News and Disc...
  real community 8 hours ago decuser Biks News and Disc...
  print does not open conso... 10 hours ago Tycho_2025 Tycho_2025 General Codin...
  create ocr to detect lice... Today, 06:18 bimosora Pedroski55 General Codin...
  Weird failure in Selenium Yesterday, 08:57 glestwid Larz60+ General Codin...
  Fred Economic Data API 10-02, 15:05 warrior42 Trickety Web Scraping ...
  Parse Markdown / get the ... 10-02, 13:56 SpongeB0B noisefloor General Codin...
  Error: cannot mix str wit... 10-01, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... 09-30, 07:43 fosuwxb buran Code sharing
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
Most views
  The best Prog... 577511
  Tutorial Requ... 501580
  Web Scraping ... 441120
  Newbie with P... 385169
  New Users Int... 370043
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+ 12093
buran 8178
snippsat 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
lauren557 Yesterday
maribita Yesterday
AnalystRobert Yesterday
Safariscampoea Yesterday
DataAnalytics021 Yesterday

User Panel Messages

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