Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,313
» Latest member: wesley300
» Forum threads: 38,843
» Forum posts: 175,966

Full Statistics

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

Latest Threads
+27636605847 ۝Crystal met...
Forum: Board
Last Post: wesley300
27 minutes ago
» Replies: 0
» Views: 2
(ECSTACY) +27636605847 Bu...
Forum: Board
Last Post: wesley300
27 minutes ago
» Replies: 0
» Views: 1
+27636605847 BUY XANAX,CO...
Forum: Board
Last Post: wesley300
28 minutes ago
» Replies: 0
» Views: 1
((( (+27) 636605847)))*••...
Forum: Board
Last Post: wesley300
28 minutes ago
» Replies: 0
» Views: 1
MDMA In Dubai (QATAR) *+2...
Forum: Board
Last Post: wesley300
28 minutes ago
» Replies: 0
» Views: 1
+27636605847⚡Xanax,Lyrica...
Forum: Board
Last Post: wesley300
29 minutes ago
» Replies: 0
» Views: 1
RIYADH ꧅+27636605847 )•*C...
Forum: Board
Last Post: wesley300
29 minutes ago
» Replies: 0
» Views: 1
+27636605847 Crystal meth...
Forum: Board
Last Post: wesley300
29 minutes ago
» Replies: 0
» Views: 1
+27636605847 —– Xanax,Lyr...
Forum: Board
Last Post: wesley300
29 minutes ago
» Replies: 0
» Views: 1
Dubai ✓+|+27636605847☆Cry...
Forum: Board
Last Post: wesley300
30 minutes ago
» Replies: 0
» Views: 1

 
  Object of type 'Status' is not JSON serializable
Posted by: ndakena - May-28-2018, 06:00 AM - Forum: General Coding Help - Replies (1)

with open('json_filtered.txt', 'w') as file:
        file.write(json.dumps(json_list,indent=4))
give the following errors


[e..... More

Print this item

  pipeline between 2 programs
Posted by: Skaperen - May-28-2018, 05:29 AM - Forum: General Coding Help - Replies (11)

in a function, you need to run 2 programs, their names given in the two arguments of the function call, with a pipeline between them, the output of th..... More

Print this item

  detect if sys.stdin is ...
Posted by: Skaperen - May-28-2018, 03:34 AM - Forum: General Coding Help - Replies (4)

how to detect if sys.stdin is the controlling tty (as opposed to a pipe, or a socket, or a file, or "/dev/null", or some other tty the script was invo..... More

Print this item

  too many packages to choose from
Posted by: Skaperen - May-28-2018, 01:40 AM - Forum: News and Discussions - Replies (6)

what i expect to most often look for is a package for is one that has a desired API component. in most cases, more popular packages would be of inter..... More

Print this item

  [split] create a virtual keyboard of an unknown foreign language with python
Posted by: fakoly - May-28-2018, 01:34 AM - Forum: General Coding Help - No Replies

hi i want to create a virtual keyboard of an unknown foreign language with python someone has an idea about it to help me

Print this item

  Code fails on Mac, works on Windows and Raspberry Pi
Posted by: eugenedakin - May-28-2018, 12:49 AM - Forum: GUI - Replies (4)

Hello Everyone,

This is my first time posting in this forum - thanks for your patience. Here is a listing of a simple ScrollBar being attached to a ..... More

Print this item

  trouble while appending list in for loop
Posted by: py_learner - May-28-2018, 12:41 AM - Forum: General Coding Help - Replies (1)

Hi folks, I am new to python and having trouble to append list in for loop.. any help will be appreciated!

[python]
a = [1,1,2,3,5,8,13,21,34,55,..... More

Print this item

  editing lists / sudoku solver
Posted by: monagro - May-27-2018, 04:11 PM - Forum: General Coding Help - Replies (5)

Hi all,

Effectively what I'm trying to do is to write a sudoku solver in python. I wrote one in Matlab a while ago at undergraduate, so I have a ba..... More

Print this item

  Compressing Matrix
Posted by: RamyMaher - May-27-2018, 02:45 PM - Forum: Data Science - Replies (3)

I want to compress a gray image whose dimension is 64x64 into 40x40 image

I tried scipy.fftpack.dct and scipy.fftpack.idct but the resulted image ..... More

Print this item

  How to restart the processes in the pool after the pool got completed
Posted by: lravikumarvsp - May-27-2018, 02:18 PM - Forum: General Coding Help - No Replies

Hi,


I had a python script which runs the processes in parallel in a pool of 3.
Is there any way to restart these process automatically after the..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  +27636605847 ۝Crystal met... 27 minutes ago wesley300 wesley300 Board
  (ECSTACY) +27636605847 Bu... 27 minutes ago wesley300 wesley300 Board
  +27636605847 BUY XANAX,CO... 28 minutes ago wesley300 wesley300 Board
  ((( (+27) 636605847)))*••... 28 minutes ago wesley300 wesley300 Board
  MDMA In Dubai (QATAR) *+2... 28 minutes ago wesley300 wesley300 Board
  +27636605847⚡Xanax,Lyrica... 29 minutes ago wesley300 wesley300 Board
  RIYADH ꧅+27636605847 )•*C... 29 minutes ago wesley300 wesley300 Board
  +27636605847 Crystal meth... 29 minutes ago wesley300 wesley300 Board
  +27636605847 —– Xanax,Lyr... 29 minutes ago wesley300 wesley300 Board
  Dubai ✓+|+27636605847☆Cry... 30 minutes ago wesley300 wesley300 Board
  Abu dhabi✦Riyadh ✦+276366... 30 minutes ago wesley300 wesley300 Board
Most views
  The best Prog... 579514
  Tutorial Requ... 513009
  Web Scraping ... 442379
  Newbie with P... 386405
  New Users Int... 381796
Most reputation
buran 581
snippsat 511
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12113
buran 8196
snippsat 7394
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
wesley300 Today
elizabethlittle6258 Today
StepanVoronin Today
QABOB Today
adityaN Today

User Panel Messages

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