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,942
» Latest member: Littlefish
» Forum threads: 38,723
» Forum posts: 175,517

Full Statistics

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

Latest Threads
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
3 minutes ago
» Replies: 8
» Views: 209
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
11 minutes ago
» Replies: 1
» Views: 1,704
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
2 hours ago
» Replies: 0
» Views: 45
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 4,426
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 839
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
Sep-19-2025, 12:30 PM
» Replies: 1
» Views: 3,677
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,189
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,702
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,516
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,616

 
  do not understand. can help?
Posted by: Ronno - Apr-07-2021, 07:39 AM - Forum: Homework - Replies (5)

[python]#replace this code with function
june_days = 30
print("June has" + str(june_days) + "days")
july days = 31
print("July has" + str(july day..... More

Print this item

  typescript -> python syntax
Posted by: DanDyse - Apr-07-2021, 06:16 AM - Forum: General Coding Help - Replies (8)

Hello,
I am trying to convert a script from JS to PY and it is already working good.
However, here is one I just can't get right (although it doesnt..... More

Print this item

  Filename stamp script is needed
Posted by: ineuw - Apr-07-2021, 05:53 AM - Forum: General Coding Help - Replies (11)

I don't know which Python library is needed to read the path and file name of a text file open on screen and in focus!

The focused file needs to b..... More

Print this item

  Tkinter messagebox and using datetime/timedelta
Posted by: Kaltex - Apr-07-2021, 04:39 AM - Forum: GUI - Replies (3)

Hi all

I made this really simple program for myself to remind me to take some breaks.


It works great and all, although there is one behavior that I..... More

Print this item

Bug Need help on this nested loop task
Posted by: PP9044 - Apr-07-2021, 02:03 AM - Forum: Homework - Replies (4)

Here is the task:
"
lyrics = ["I wanna be your endgame", "I wanna be your first string",
"I wanna be your A-Team", "I wanna be you..... More

Print this item

  trouble installing python package
Posted by: Tuxedo - Apr-07-2021, 01:58 AM - Forum: Data Science - Replies (1)

Trying to install pyportfolioopt but got errors. Can anyone suggest what I should do?

[output](base) xxx@xxx-Satellite-P55-A:~$ pip install pyport..... More

Print this item

Question Recursion and permutations: print all permutations filling a list of length N
Posted by: SantiagoPB - Apr-06-2021, 06:16 PM - Forum: Homework - Replies (6)

Hello everyone Big Grin ,

I have written a code and I need to add a condition.

The condition is to give the length of the list, for example,..... More

Print this item

  Convert String of an int array to a Numpy array of ints
Posted by: mdsousa - Apr-06-2021, 06:12 PM - Forum: General Coding Help - Replies (5)

Hi

I am sending a Numpy int array over RabbitMQ and it seem to be receiving correctly.

This is the output RabbitMQ's publish that is sent:

>p..... More

Print this item

  My first project - RAMDisk
Posted by: estarq - Apr-06-2021, 04:29 PM - Forum: Code Review - Replies (1)

Hi,

here's my first project - RAMDisk.

[python]
#!/usr/bin/env python3

import string
import js..... More

Print this item

  How to sort words to categories
Posted by: Ayran - Apr-06-2021, 01:10 PM - Forum: Data Science - Replies (1)

Hi everyone Smile ,
This is my first question here, and I don't have much experience in programming and HTML.

I want that in an HTML form you..... More

Print this item

  Parsing xml
Posted by: ateestructural - Apr-06-2021, 01:08 PM - Forum: General Coding Help - Replies (2)

I have the following Python code:
[python]def xml_parsing(file_name, tag_name, source_string_list, target_string_list):

from xml.etree imp..... More

Print this item

  Collisions for items in a list
Posted by: Idents - Apr-06-2021, 01:02 PM - Forum: Homework - Replies (3)

Hi,
I am attempting to make a simple ideal gas simulation.
I have created particles in a list as such, where the user will input n:
[python]
impor..... More

Print this item

Lightbulb Hypertag. New language for HTML templating w/ Django support
Posted by: mwojnars - Apr-06-2021, 12:53 PM - Forum: Web Scraping & Web Development - No Replies

Hi,
A new language for document generation and HTML templating has been released. Inspired by indentation-based template languages (Slim, Haml..... More

Print this item

  String to Date format
Posted by: SAF - Apr-06-2021, 12:42 PM - Forum: General Coding Help - Replies (2)

Hi

I have a date column as below. the date is in this format "January 5, 2020"
I want this date in to mm/dd/YYY format -- 01/05/2020. How I can c..... More

Print this item

  time.clock not functioning
Posted by: Oldman45 - Apr-06-2021, 10:33 AM - Forum: General Coding Help - Replies (3)

I am using the following coding, from a text book, to compare two methods of measuring execution time for coding but time.clock is not recognised. I ..... More

Print this item

  blank graph with matplotlib from a csv file / data type issue
Posted by: arsentievalex - Apr-06-2021, 10:08 AM - Forum: General Coding Help - No Replies

Hi All. I'm new to Python and hoping to get some help here. I'm trying to create some simple bar/line graphs from a csv file, however, it gives me an ..... More

Print this item

  Calculate the value which has the similar name in the header using - XLSWRITER using
Posted by: rsd - Apr-06-2021, 06:14 AM - Forum: General Coding Help - Replies (1)

Hi All,
I need to calculate the value which has the similar name in the header. Here i have Bill and Non Bill fields in the column. I n..... More

Print this item

  implementing the Linux touch command
Posted by: Skaperen - Apr-06-2021, 12:06 AM - Forum: News and Discussions - No Replies

how can i implement the Linux (or POSIX) touch command, in particular the -a or -m option which specifies updating the access tim..... More

Print this item

  Replacing text in xml
Posted by: ateestructural - Apr-05-2021, 11:50 PM - Forum: General Coding Help - Replies (4)

I have this code but the text is not replaced in the file titled: file_name (although as a python string the replacement is correct but I expected to ..... More

Print this item

  wx.DC.CalcBoundingBox
Posted by: menator01 - Apr-05-2021, 11:24 PM - Forum: GUI - No Replies

Could someone give me an example of wx.DC.CalcBoundingBox. In my project creating the die (square), I would like to set up a functions/methods to plac..... More

Print this item

  Python cookies
Posted by: vj78 - Apr-05-2021, 10:50 PM - Forum: Web Scraping & Web Development - Replies (2)

I am trying to set cookies and retrieve them.

How to get and set the cookies? in python.

Print this item

Music XML File - cannot find the tag
Posted by: ateestructural - Apr-05-2021, 09:24 PM - Forum: General Coding Help - Replies (1)

I have the attached xml file. I want to find the tag: inputDataLocation in the attached xml and want to edit the VALUE related text

I tried several..... More

Print this item

  I need assistance with getting sympy to work
Posted by: alex_0 - Apr-05-2021, 08:33 PM - Forum: General Coding Help - Replies (1)

I am trying to get sympy to work and am having trouble with it.

I have used pip install sympy to get it onto my computer.

I tried to make a simp..... More

Print this item

  Unexpected parameter verbose
Posted by: Led_Zeppelin - Apr-05-2021, 08:28 PM - Forum: General Coding Help - Replies (5)

The following simple 13 lines python 3.6.3 code gives me an error as shown. I am working in Windows 10-home. It is on the 8th line.


[python]
fr..... More

Print this item

  Solving for zeros of an equation!
Posted by: fmitchell17 - Apr-05-2021, 07:49 PM - Forum: General Coding Help - No Replies

Hello all,

Looking for some advice on how to solve for the zeros of a particular variable in the equation below. I am new to Python, coming from MA..... More

Print this item

  ERROR: importing desired module
Posted by: mbgamer28 - Apr-05-2021, 07:46 PM - Forum: General Coding Help - No Replies

Hello Folks! I have written code to fetch secrets from Azure KeyVault (no knowledge of azure is required for this issue Smile ). For this ..... More

Print this item

  how to call an object in another function in Maya
Posted by: bstout - Apr-05-2021, 07:12 PM - Forum: General Coding Help - No Replies

I have a UI to set the color of the controls of the autorig. When I connect the button to a function I run into a problem. The called function can't f..... More

Print this item

  Selenium XPATH
Posted by: jimsxxl - Apr-05-2021, 05:23 PM - Forum: Web Scraping & Web Development - Replies (2)

Hi guys,
Im a beginner when it comes to Python, and wanted to try code a scraper.
Im trying to scrape betfair.com for Team-names and Odds.

I succ..... More

Print this item

  Putting code into a function breaks its functionality, though the code is identical!
Posted by: PCesarano - Apr-05-2021, 04:50 PM - Forum: General Coding Help - Replies (1)

Hello, I am perplexed by this problem. I have a chunk of code which appears to work in the body of my Python script, but once I stick the same code in..... More

Print this item

  How to get a URL from python 'webbrowser'?
Posted by: dheeraj - Apr-05-2021, 03:55 PM - Forum: General Coding Help - No Replies

I'm using 'webbrowser' for opening multiple tabs in Chrome/Firefox.
For example:
[python]webbrowser.get("open -a /Applications/Firefox.app %s").open..... More

Print this item

  JS Buffer.from VS struct.pack
Posted by: DreamingInsanity - Apr-05-2021, 02:58 PM - Forum: General Coding Help - Replies (3)

I'm trying to port over a little of bit of a JS library so I can work with it in Python. It allows for you to create Celeste (the game) maps through c..... More

Print this item

  Pandas filters
Posted by: SAF - Apr-05-2021, 07:00 AM - Forum: General Coding Help - No Replies

Hi

i have two columns ID and description.

If the ID is blank, and the description contains as P2.... then ID should come as P2 in place of balnk.

I..... More

Print this item

  Docker-compose on Pycharm - Connection refused
Posted by: rstambach - Apr-05-2021, 04:48 AM - Forum: General Coding Help - Replies (3)

This is the first time I've used Pycharm with docker-compose and I have this issue. I have a docker-compose.yml that works fine from bash execution bu..... More

Print this item

  making : optional
Posted by: Skaperen - Apr-04-2021, 10:45 PM - Forum: News and Discussions - Replies (3)

what would be an example of a situation where code can be valid without : and valid with : and have different semantics? or can a language like Pytho..... More

Print this item

Sad web scraping HTML - :(
Posted by: Kingoman - Apr-04-2021, 10:14 PM - Forum: Web Scraping & Web Development - Replies (22)

Hi,

I'm in need of some help to 'scrap' html code from multiple sites instead of manually go to 'view source'
- All I have found regarding this on..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Using a For Loop to subtr... 3 minutes ago Anunderling deanhystad General Codin...
  Another app idea - intera... 11 minutes ago decuser Lenowell News and Disc...
  A coding beginner needs h... 2 hours ago Littlefish Littlefish General Codin...
  403 Error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  Scraping a page with log ... 09-19, 12:30 iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
Most views
  The best Prog... 576530
  Tutorial Requ... 498468
  Web Scraping ... 440413
  Newbie with P... 384315
  New Users Int... 367474
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+ 12087
buran 8175
snippsat 7368
deanhystad 6893
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Littlefish Today
Noya_Yonatan Yesterday
Saipython555 Yesterday
Anunderling Yesterday
Monir Yesterday

User Panel Messages

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