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,947
» Latest member: Markbel386
» Forum threads: 38,726
» Forum posts: 175,524

Full Statistics

Online Users
There are currently 59 online users.
» 0 Member(s) | 50 Guest(s)
Apple, Google, Facebook, AOL

Latest Threads
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: Pedroski55
5 hours ago
» Replies: 5
» Views: 9,139
IBKR Purchasing code issu...
Forum: General Coding Help
Last Post: compuman145
8 hours ago
» Replies: 0
» Views: 58
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
Today, 03:29 AM
» Replies: 2
» Views: 455
Is the interpreter that c...
Forum: General Coding Help
Last Post: helendamdam
Today, 02:36 AM
» Replies: 0
» Views: 91
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 08:56 PM
» Replies: 9
» Views: 593
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 4,821
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 1,131
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,489
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 3,058
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,799

 
  Initialize widget value from Python
Posted by: j.crater - May-27-2018, 11:39 AM - Forum: GUI - Replies (2)

I can't for the life of me get my code to initialize a widget (in a kv file) from Python code on program startup.
Simplified Python code is here:
[p..... More

Print this item

  Era Of Brutality - MMORPG
Posted by: Heretic06 - May-27-2018, 11:37 AM - Forum: Jobs - Replies (3)

Hello, I'm here asking for some advice and help...

I'm currently part of a team building a new MMORPG, but we are in need of a python programmer........ More

Print this item

  can not change double to single dash
Posted by: oco - May-27-2018, 08:40 AM - Forum: General Coding Help - Replies (7)

python 2.7.11

[python]def leftrotate(l, n):
return l[n:] + l[:n]

def rightrotate(l, n):
return l[-n:] + l[:-n]

def encode(s, k, kk)..... More

Print this item

  which sequence is in a sequence
Posted by: Skaperen - May-27-2018, 01:43 AM - Forum: General Coding Help - Replies (3)

i have a sequence and a list/tuple of similar sequences. i want to find if any of the sequences in the list/tuple are in the first sequence. ..... More

Print this item

  Python 3.6.5 pathlib weird behaviour when resolve a relative path on root (macOs)
Posted by: QbLearningPython - May-26-2018, 09:12 PM - Forum: General Coding Help - Replies (7)

Hi,

I have recently found a weird behaviour while trying to resolve a relative path located on the root directory on a macOs.

I tried to resolve..... More

Print this item

  nested numbered lists
Posted by: Larz60+ - May-26-2018, 08:31 PM - Forum: Board - Replies (4)

How to get nested numbered lists with bbcode?

Print this item

  def functions and floats
Posted by: alwillia - May-26-2018, 06:40 PM - Forum: Homework - Replies (3)

def celcius(c):
    c = 0
    return f=(1.8 * c) + 32 
    
print celcius()
Directions follow. I'm was just trying to ge..... More

Print this item

  How to calculate time elapsed
Posted by: SriRajesh - May-26-2018, 04:07 PM - Forum: General Coding Help - Replies (1)

Hi,

I want to calculate time elapsed between two times intervals

[python]s3 = '11:22:26'
s4= '01:22:26'
FMT = '%H:%M:%S'
tdelta3 = datetime.strptime..... More

Print this item

  Creating new list from 2 lists after a custom sort
Posted by: pythoneer - May-26-2018, 02:47 PM - Forum: General Coding Help - Replies (12)

I have 2 lists

Quote:list1=[25,54,68,78,12]
list2=[35,11,18,70]

i want to take every no from list2 and subtract that with every no in li..... More

Print this item

  Audio gets muted when app minimized?
Posted by: MegasXLR - May-26-2018, 02:22 PM - Forum: Game Development - Replies (5)

Hello,

Has anyone encountered a bug with PyGame which mutes the audio coming from pygame.mixer.music if a pygame.mixer.music.play() is executed whi..... More

Print this item

  How to covert raw data into panel data
Posted by: jason413 - May-26-2018, 09:24 AM - Forum: Homework - Replies (1)

How do I convert datastream time-series raw data with two variables (stock price & market cap) into panel data? In particular, How do I reshape it to ..... More

Print this item

  Need help to correct my python function for fetching full data!
Posted by: PrateekG - May-26-2018, 08:16 AM - Forum: General Coding Help - Replies (2)

I am trying to fetch product data from an api using Python3.6.

By default this api returns 20 products and in a single request the api can return m..... More

Print this item

  Pandas dataframe: sum of exponentially weighted correlation matrices per row
Posted by: vvvcvvcv - May-26-2018, 06:07 AM - Forum: Data Science - Replies (1)

Consider the following dataframe:

df = pd.DataFrame(np.random.random((200,3)))
df['date'] = pd.date_range('2000-1-1', periods=200, freq='D')
df =..... More

Print this item

  Creating a matrix of rolling variances
Posted by: vvvcvvcv - May-26-2018, 05:35 AM - Forum: Data Science - Replies (1)

I have a pandas data frame of six columns, I would like to iteratively compute the variance along each column. Since I am a newbie, I don't really und..... More

Print this item

  Release kbhit
Posted by: Epilepsy - May-26-2018, 03:49 AM - Forum: General Coding Help - Replies (2)

I there, is possible to release the msvcrt.kbhit()

I have this,

[python]import msvcrt
while True:
command = msvcrt.kbhit()
if command == 1:..... More

Print this item

  the return statement
Posted by: Skaperen - May-26-2018, 03:30 AM - Forum: Bar - Replies (6)

SyntaxError: 'return' outside function

IMHO, they should have made return outside of a function be allowed and do the same as exit..... More

Print this item

  How to write switch case statement in Python
Posted by: pyhelp - May-26-2018, 02:19 AM - Forum: General Coding Help - Replies (8)

I am new to programming and need help writing the below piece of code in switch-case.
Please HELP.

Thanks in Advance

def pick_day():
'''In..... More

Print this item

  Loops
Posted by: alwillia - May-26-2018, 01:55 AM - Forum: Homework - Replies (1)

[python]
for i in range(3):
category = input("Enter a Category: ")
for j in range(3):
enter_for_category = input("Enter Something ..... More

Print this item

  while loops and breaks
Posted by: alwillia - May-26-2018, 12:30 AM - Forum: Homework - Replies (10)

[python]
secret_num = round(3.3312, 2)

while True:
user_guess = float(input("Guess the secret number: "))
if user_guess > secret_num:
..... More

Print this item

  Wrong output from script mode
Posted by: st3m0n - May-25-2018, 10:42 PM - Forum: General Coding Help - Replies (8)

I'm at the beginning of the second lesson in the Python programming book "Python programming for the absolute beginner 3rd edition". The end product i..... More

Print this item

  Object Oriented DB Interactions
Posted by: datasundae - May-25-2018, 09:28 PM - Forum: General Coding Help - Replies (2)

Currently I use xlrd xlwr with psycopg2 to move transaction records in and out of spreadsheets and postgres. That works but I am interested in learnin..... More

Print this item

  Problem with a language word problem
Posted by: baobei - May-25-2018, 09:24 PM - Forum: General Coding Help - Replies (17)

Can anyone solve this problem?
[python]english = "hello"
spanish = "hola"

1

print("hello is hola in Spanish")

2



3

print ("goodby..... More

Print this item

  problem a with a word question
Posted by: baobei - May-25-2018, 09:16 PM - Forum: General Coding Help - Replies (5)

I am stumped solving this question, does anyone have a solution? Huh
[python]prefix = "Sir"
first = "Reginald"
last = "Poofter"
suffix = "III..... More

Print this item

  PyQt5 - import rext from other file - despearte for help
Posted by: D_frucht - May-25-2018, 08:24 PM - Forum: GUI - Replies (1)

Hello!

im stuck for hours with a one simple task:

i need that the numbers that are generated from gps.py show in the fh.py

this is the gps.py..... More

Print this item

  Interpolating to a common grid - help needed!!!
Posted by: Lightning1800 - May-25-2018, 08:05 PM - Forum: General Coding Help - No Replies

Hi there,

I am working with model data and would like to be able to interpolate each model to a common model grid. This is because each models' grid ..... More

Print this item

  Strange-looking python brochure page
Posted by: alex_uprise - May-25-2018, 08:02 PM - Forum: Board - Replies (7)

Hi everyone! Smile

I was just lurking around python site. Then I clicked on Python brochure link and saw this:

[img]https://i.imgur.com/Ey..... More

Print this item

  File Merging
Posted by: vino - May-25-2018, 05:08 PM - Forum: General Coding Help - No Replies

Hi All,

I am a newbie for python and need some help in the below program code.

Explanation:
We have a script which perform few checks the se..... More

Print this item

  [Python Core] Keyword for direct passthrough of **kwargs to super().__init__
Posted by: miallo - May-25-2018, 04:36 PM - Forum: News and Discussions - Replies (6)

First of all: I just started programming in Python a couple of months ago, so please be patient if I ask a stupid question. I started this question on..... More

Print this item

  output "os" in frame
Posted by: m_clayton - May-25-2018, 03:52 PM - Forum: GUI - Replies (6)

Hello to all.
I created a frame and two buttons, I assigned two functions to the buttons, one closes the window, the other displays the / etc / fstab..... More

Print this item

  Converting raw data into panel data
Posted by: jason413 - May-25-2018, 03:48 PM - Forum: General Coding Help - Replies (1)

I have a problem about converting raw data into panel data.
I got the following data in excel like:
Name MMMmarketcap MMMstoctprice APPLmarketcap ..... More

Print this item

  PyGame does not close when I press the close button
Posted by: Midnight_Sparkle3344 - May-25-2018, 03:46 PM - Forum: Game Development - Replies (9)

[python]
# alien_invasion.py
import sys
import pygame

def run_game():
# Initialize game and create a screen object.
pygame.init()
..... More

Print this item

  SetValue to get event fired
Posted by: ian - May-25-2018, 02:51 PM - Forum: GUI - Replies (1)

self.myRadioButton has an event function setup: On_Click_myRadioButton(self, event).
When click on it, the function is run. Is it possible to get th..... More

Print this item

  Indentation if/else problem
Posted by: Rikk - May-25-2018, 01:01 PM - Forum: General Coding Help - Replies (3)

I need assistance with writing if/else statements on Python 3.6. I am working on an iMac OS High Sierra (v 10.13.4). This is what I write:
>>> x = ..... More

Print this item

  QSlider jump to mouse click position
Posted by: MegasXLR - May-25-2018, 11:53 AM - Forum: GUI - Replies (2)

So I've been searching for a way to make it so that when I click anywhere on a QSlider it would go to that position instead of just jumping one step a..... More

Print this item

  How to check if class instance exists in a list of class instance objects?
Posted by: sonicblind - May-25-2018, 10:23 AM - Forum: General Coding Help - Replies (23)

Hi,

I have a list of class instances:

mylist = [ myClass(name=n1), myClass(name=n2), myClass(name=n1), myClass(name=n3) ]
Ho..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Creating a Mindmap progra... 5 hours ago J_Miller Pedroski55 General Codin...
  IBKR Purchasing code issu... 8 hours ago compuman145 compuman145 General Codin...
  A coding beginner needs h... Today, 03:29 Littlefish Littlefish General Codin...
  Is the interpreter that c... Today, 02:36 helendamdam helendamdam General Codin...
  Using a For Loop to subtr... Yesterday, 20:56 Anunderling deanhystad 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...
  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...
Most views
  The best Prog... 576717
  Tutorial Requ... 498920
  Web Scraping ... 440526
  Newbie with P... 384496
  New Users Int... 368247
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+ 12088
buran 8176
snippsat 7368
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Markbel386 Today
trntgl Today
susan Today
jatinkumar12 Today
angelhealu504 Today

User Panel Messages

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