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,941
» Latest member: Noya_Yonatan
» Forum threads: 38,722
» Forum posts: 175,511

Full Statistics

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

Latest Threads
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: Pedroski55
1 hour ago
» Replies: 3
» Views: 150
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 4,379
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 803
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
Sep-19-2025, 12:30 PM
» Replies: 1
» Views: 3,655
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,153
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,663
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,477
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 1,669
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,593
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,770

 
  Passing flags to python script, through a function
Posted by: xbit - Apr-19-2021, 12:58 PM - Forum: General Coding Help - Replies (4)

I have a python script, that i am able to call it from the command line, and i pass the parameters to it, through flags on the terminal. For example:
..... More

Print this item

  Run the code for some stuff it does not return me why
Posted by: Anldra12 - Apr-19-2021, 09:40 AM - Forum: General Coding Help - Replies (3)


  1. The code run but trying to do these output but did not return me the follow why??
    first Enter the number of leaf nodes:
    Enter node valu..... More

Print this item

  Help with urllib.request
Posted by: Brian177 - Apr-19-2021, 01:53 AM - Forum: General Coding Help - Replies (2)

Help on this please; Is a second urlopen needed, in the scenario I describe?

[python]import urllib.request

# Given you open a url
resp = urllib..... More

Print this item

  Openpyxl Help
Posted by: SunWers - Apr-19-2021, 12:50 AM - Forum: General Coding Help - Replies (2)

Hello Everyone,

I've been working on getting some scripts together to help me automate some of the reports that I do daily and I think I'm about th..... More

Print this item

  Limit test for linear travel setup
Posted by: knoxvilles_joker - Apr-19-2021, 12:31 AM - Forum: Code sharing - Replies (2)

This is something I did for a blade gauntlet on a costume. The code works:

[python]
#!/usr/bin/python

import cwiid
import RPi.GPIO as GPIO
i..... More

Print this item

  wiimote on raspberry pi controller servos, lights, and sounds
Posted by: knoxvilles_joker - Apr-19-2021, 12:29 AM - Forum: Code sharing - Replies (2)

This works:

[python]#!/usr/bin/python
#+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
#|R|a|s|p|b|e|r|r|y|P|i|-|S|p|y|.|c|o|.|u|k|
#+-+-+-+-+-+-+-+..... More

Print this item

  Return mean() of dict
Posted by: nman52 - Apr-18-2021, 10:44 PM - Forum: Homework - No Replies

Hi everyone, I've solved this problem #7 using pandas, but it specifically asks to do it by hand.

[output]
Problem 7: mean_attack_per_type

Writ..... More

Print this item

  FREE recruitment stream with Square Enix and more!
Posted by: WanderingOwl - Apr-18-2021, 10:37 PM - Forum: Jobs - No Replies

Finding the perfect job is always a challenge, but it's especially difficult to connect with the right people at the moment! To help out, Games Jobs L..... More

Print this item

  exec in a function
Posted by: paul18fr - Apr-18-2021, 07:33 PM - Forum: General Coding Help - Replies (6)

Hi

I'm modifying a code by moving an "exec" inside a function creating an error; I wrote a small code highlighting what I'm facing.

What I'm mis..... More

Print this item

  Position after given movements
Posted by: SantiagoPB - Apr-18-2021, 07:22 PM - Forum: Homework - Replies (3)

Hello everybody,

I have a task that I don't quite understand how to tackle.

At the moment I have written this code but I do not get the result t..... More

Print this item

  ModuleNotFoundError: No module named 'fpdf'
Posted by: KatMac - Apr-18-2021, 07:04 PM - Forum: General Coding Help - Replies (4)

I am running Windows 10, using the VSC editor and Python 3.9.4
My goal is to convert an existing csv file to a pdf.

I installed the required modul..... More

Print this item

  Python 3.4 in Windows XP
Posted by: MarcQuerol - Apr-18-2021, 04:45 PM - Forum: General Coding Help - Replies (2)

Hello everyone,

I'm new in this community and i hope you can help me. The point is that i have to work in coding python in a Windows XP system and..... More

Print this item

  Text widget inert mode on and off
Posted by: rfresh737 - Apr-18-2021, 02:53 PM - Forum: GUI - Replies (5)

I can't find anything that talks about how to set a text widget insert mode on and off? My text widget is always in insert mode. I assume I can set it..... More

Print this item

  understanding Google's OAuth 2.0
Posted by: aster - Apr-18-2021, 12:54 PM - Forum: General Coding Help - No Replies

Hello,

I am finishing a program where I use Google's OAuth 2.0, I will need to move this program between different computers.

To authenticateI u..... More

Print this item

  [split] NameError: name 'start_with_first_selected' is not defined
Posted by: knoxvilles_joker - Apr-18-2021, 10:45 AM - Forum: General Coding Help - Replies (4)

I started the process of redoing the code so I can place it into the splash screen script I have but I had to redo the initialization part of the scri..... More

Print this item

  Multiple Plotting in Same PLot
Posted by: quest - Apr-18-2021, 10:26 AM - Forum: General Coding Help - No Replies

Hello,

I want to plot multiple curve in sale plot line here:
[img]https://queirozf.com/entries/matplotlib-examples-displaying-and-configuring-legend..... More

Print this item

  Spyder stopped working in Windows 10
Posted by: gammaray - Apr-18-2021, 09:23 AM - Forum: General Coding Help - Replies (3)

It seems that Spyder got somehow blocked by Windows 10 after some update. I don't find a tick in Windows Defender that would be specific to Spyder, ho..... More

Print this item

  Updating button text based upon different variable values
Posted by: knoxvilles_joker - Apr-18-2021, 04:13 AM - Forum: GUI - No Replies

I am working through among one of the final issues on my script. I have the temp and rate bars updating like I want. I have the ammo and msec countd..... More

Print this item

  Code worked in shell but not when I tried in my project.
Posted by: yoohooos - Apr-18-2021, 03:30 AM - Forum: Web Scraping & Web Development - Replies (1)

First of all, I really don't know what the error is, so I can't come up with a better header.

I was learning scraping using Scrapy by following the [..... More

Print this item

  return
Posted by: Skaperen - Apr-17-2021, 11:04 PM - Forum: Bar - Replies (4)

the language i created long ago that was never finished did returns not as a statement, but as a function call. this was a unique function in each fu..... More

Print this item

  Import Error
Posted by: Christian - Apr-17-2021, 08:40 PM - Forum: General Coding Help - Replies (3)

Hello everyone

I downloaded a Github repo.
this is the main directory
[quote]
baselines common configs envs firl fuck logs README.md r..... More

Print this item

  update text variable on label with keypress
Posted by: knoxvilles_joker - Apr-17-2021, 07:03 PM - Forum: GUI - Replies (5)

I am trying to get a gui to update with four different possible letters to display in the left and right top corners of the window (a, b, c, d). I am..... More

Print this item

Star Split and organize my Pandas Dataframe
Posted by: brunolelli - Apr-17-2021, 03:31 PM - Forum: General Coding Help - Replies (4)

Hello guys,

I'm using the following code in order to collect the cancelled flights from some airlines:
[python]import pandas as pd

url_ini = 'h..... More

Print this item

Lightbulb Python Nested Dictionary
Posted by: michaelserra - Apr-17-2021, 12:44 PM - Forum: General Coding Help - Replies (2)

I'm trying to create a little program that stores user-entered information in a nested dictionary and then converts it to a Pandas dataframe.

The dic..... More

Print this item

  More non english characters
Posted by: johnboy1974 - Apr-17-2021, 11:32 AM - Forum: General Coding Help - Replies (8)

Hi,

When I read from JSON, it's recognising the special characters however when using the write funciton, it has started falling over. Not sure wh..... More

Print this item

  best practice for import libraries and using pyinstaller
Posted by: aster - Apr-17-2021, 10:16 AM - Forum: General Coding Help - Replies (3)

Hello,

I have a python program splitted in multiple files, I convert it to an executable with pyinstaller.

I am not sure about witch is the best pra..... More

Print this item

  How to transfer a finished ML- project to the cloud?
Posted by: AlekseyPython - Apr-17-2021, 05:06 AM - Forum: Data Science - Replies (1)

Python 3.9.2, Fedora 33

I wrote a ML- project, that takes a long time to compute on a local machine. So I decided to use the computational power of..... More

Print this item

  shooting system in asteroid games
Posted by: syafiq14 - Apr-17-2021, 12:52 AM - Forum: Game Development - Replies (1)

I'm making a game like the classic asteroid game, I can make the movement and acceleration but I don't understand how to make the shooting system simi..... More

Print this item

  How to convert dates in odd format to months
Posted by: lokhtar - Apr-17-2021, 12:40 AM - Forum: General Coding Help - Replies (2)

So I have a column called 'age' in my sql column that is inconsistent in format. It lists ages of kids in days, weeks or months. For example:

[out..... More

Print this item

  Virtualenv with auto restart
Posted by: JohnnyCoffee - Apr-16-2021, 05:39 PM - Forum: News and Discussions - Replies (3)

Is there any way to leave virtualenv in autorestart mode so that you don't have to use the (deactivate) and (activate) command to restart it ?

Print this item

  Text.search() regexp not working
Posted by: rfresh737 - Apr-16-2021, 03:31 PM - Forum: GUI - Replies (11)

My code below uses text_widget.search() with regexp=True but it's not finding my target word. Can someone tell me what I am missing?

I also have a ..... More

Print this item

  get data (temperature and humidity) from DHT22 into CSV and sending them over the net
Posted by: apollo - Apr-16-2021, 02:00 PM - Forum: General Coding Help - No Replies

Dear Python-fellows Smile


hope youre all right and everything goes well at your hometown. Hopefully youre well.

Currently i work on a li..... More

Print this item

  Beautiful Soup - access a rating value in a class
Posted by: KatMac - Apr-16-2021, 01:08 PM - Forum: Web Scraping & Web Development - Replies (1)

On the web page I am am trying to scrape, I have come across the following html tag: <p class="star-rating One">

Currently, I am using the followin..... More

Print this item

Big Grin New to python, starting from scratch
Posted by: Pythnoobvent1971 - Apr-16-2021, 11:34 AM - Forum: General Coding Help - Replies (1)

[python]questions = ["What is your name?", "What is your favorite color?", "What is your quest?"]
n = 0
while True:
print("Type q to quit")
..... More

Print this item

  math,numpy
Posted by: pyStudent - Apr-16-2021, 11:14 AM - Forum: Homework - Replies (2)

I need write a function which generate a random matrix (bigger than 2x2). And calculate all the 2x2 part determinant of the generated matrix and gener..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Using a For Loop to subtr... 1 hour ago Anunderling Pedroski55 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...
  Another app idea - intera... 09-16, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
Most views
  The best Prog... 576511
  Tutorial Requ... 498431
  Web Scraping ... 440400
  Newbie with P... 384295
  New Users Int... 367442
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 6892
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Noya_Yonatan Yesterday
Saipython555 Yesterday
Anunderling Yesterday
Monir Yesterday
atylerfraces2254 09-20

User Panel Messages

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