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,309
» Latest member: adityaN
» Forum threads: 38,801
» Forum posts: 175,920

Full Statistics

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

Latest Threads
No new line from print in...
Forum: General Coding Help
Last Post: Pedroski55
1 hour ago
» Replies: 9
» Views: 247
Python compiler
Forum: General Coding Help
Last Post: NeoQuant
7 hours ago
» Replies: 0
» Views: 31
Trading Risk management s...
Forum: Code sharing
Last Post: NeoQuant
8 hours ago
» Replies: 5
» Views: 74
Standard template Data En...
Forum: Code Review
Last Post: Hosthubac
9 hours ago
» Replies: 0
» Views: 34
Python Online Compiler
Forum: News and Discussions
Last Post: ichsanputr
Yesterday, 07:39 AM
» Replies: 3
» Views: 11,110
Python is not working on ...
Forum: General Coding Help
Last Post: noisefloor
Nov-28-2025, 10:44 AM
» Replies: 4
» Views: 191
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-28-2025, 04:44 AM
» Replies: 8
» Views: 715
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: mamta25
Nov-27-2025, 04:48 AM
» Replies: 6
» Views: 7,833
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Nov-26-2025, 09:58 PM
» Replies: 3
» Views: 185
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
Nov-26-2025, 03:53 PM
» Replies: 1
» Views: 156

 
  syntactic sugar
Posted by: Skaperen - Sep-04-2018, 07:11 PM - Forum: News and Discussions - Replies (11)

so, Python has some syntactic sugar. if that, then why not other things, such as a case statement, or an until clause, or a do ..... More

Print this item

  Creating Disassembler for a bin file(total beginner)
Posted by: SoulsKeeper - Sep-04-2018, 03:20 PM - Forum: Homework - Replies (1)

Hello, I have a reverse engineering assignment which I need to understand the Stack data structure and thus find a flag within a Bin file

The probl..... More

Print this item

  unable to run unix command using spur
Posted by: purnima1 - Sep-04-2018, 01:43 PM - Forum: General Coding Help - Replies (11)

Hi Experts ,
I am trying to run simple command but getting an error
[python]

import spur
import spur.ssh

try:
shell = spur.SshShell(hostna..... More

Print this item

  Single line intermitant inputs to an array
Posted by: Astrikor - Sep-04-2018, 01:25 PM - Forum: Data Science - Replies (10)

I am having trouble trying to input values into an array in which I want to change only some of them. (the array shown is a very much abbreviated vers..... More

Print this item

  How to know modules contained by python3 library
Posted by: sylas - Sep-04-2018, 08:46 AM - Forum: General Coding Help - Replies (3)

Hi all ! I try to import 'msvcrt'. Impossible. I am using python 3.7. On Linux.
[error]>>> import msvcrt
... import sys
...
... while True:
........ More

Print this item

  shell script inside python
Posted by: pannis - Sep-04-2018, 08:43 AM - Forum: General Coding Help - Replies (6)

Hi,
I am trying to generate a shell script inside the python script and then planning to execute it. I know that this is a very naive way. This snipp..... More

Print this item

  While loop with condition that a list of strings contain a substring
Posted by: SnowingSilently - Sep-04-2018, 07:51 AM - Forum: General Coding Help - Replies (4)

Let's say that I have

li = ['A1','B','A2','C']
How would I go about coding a while loop that runs while [font=Courier New, Courie..... More

Print this item

  Ping Code Problem
Posted by: MTom5 - Sep-04-2018, 06:33 AM - Forum: General Coding Help - Replies (1)

I have the following block of code which i use to Ping multiple addresses

[python] AN_Sel_State = var4.get()
if (AN_Sel_State == 1)..... More

Print this item

  Compass Calibrate
Posted by: Hendra84 - Sep-04-2018, 06:08 AM - Forum: General Coding Help - Replies (1)

Hello guys, i need somebody who can explain how to use compass CMPS with python on raspi3 . I have compass module CMPS-12 but i dont have the library ..... More

Print this item

  subprocess in thread python to check reachability
Posted by: anna - Sep-04-2018, 06:03 AM - Forum: General Coding Help - Replies (3)

Hi All,

I would like to put subprocess in thread to check reachability in less time. Below is the my code. First its check reachability and put ali..... More

Print this item

  PyQt5 can't load video
Posted by: DecaK - Sep-03-2018, 07:29 PM - Forum: GUI - Replies (6)

Hello, I'm using Python 3.6 and PyQt5 and I tried few programs I found on internet, but always same problem: PyQt5 Video Widget is just black and noth..... More

Print this item

  Printing lists in a table, rows and columns
Posted by: randy_shooflay - Sep-03-2018, 04:42 PM - Forum: General Coding Help - Replies (6)

I'm using python3.7.
In this first example it runs without errors.
My goal is to print the numbers in one row and the letters on the second row (or ..... More

Print this item

  Code not working
Posted by: Luzaich - Sep-03-2018, 03:57 PM - Forum: GUI - Replies (2)

[python]
import random
from PyQt5 import QtCore, QtGui, QtWidgets

class Ui_MainWindow(object):
def setupUi(self, MainWindow):

Mai..... More

Print this item

  Image detection.
Posted by: ThNera - Sep-03-2018, 03:52 PM - Forum: General Coding Help - Replies (1)

I would like to know if there is any way you can use python in order to detect images in a live game that you play. For example, detecting head/player..... More

Print this item

  Armstrong in minimum lines
Posted by: Gaurav - Sep-03-2018, 03:38 PM - Forum: General Coding Help - Replies (1)

Hey guys. I've just started learning python. Made a simple armstrong program and need help on it.
Basically I wanna know how to nest for loops.
Here..... More

Print this item

  Python catch mouse click in pure text, no graphics
Posted by: samtal - Sep-03-2018, 03:18 PM - Forum: General Coding Help - Replies (7)

Hi,
I wish to catch mouse click (all buttons) in a pure text, non-graphic program.
Example: I have a While loop that prints a list. I wish to exit ..... More

Print this item

  string to list and back again as same type
Posted by: Skaperen - Sep-03-2018, 02:25 PM - Forum: General Coding Help - Replies (10)

i need to do some processing on a string that requires temporarily putting its contents into a list. then it needs to be made back into a string. bu..... More

Print this item

  If statement variable not defined
Posted by: MTom5 - Sep-03-2018, 01:52 PM - Forum: General Coding Help - Replies (3)

I cannot get this bit of code working

if ({Status} == "Y"):
    Online_Status = 1
elif ({Status} == "N"):
    Online_Status = 0
..... More

Print this item

  Program slows my mac down
Posted by: bobsmith76 - Sep-03-2018, 01:43 PM - Forum: General Coding Help - No Replies

I'm running a program that counts each keystroke I make. I'm trying to find some way to measure my productivity. The problem is that after 15 minutes ..... More

Print this item

  Looping problem
Posted by: IMissedTheBus - Sep-03-2018, 11:43 AM - Forum: General Coding Help - Replies (3)

I'm trying to make a little game for my wife start off small and work my way up. but i cant loop the question if she gets it wrong.

I would like it..... More

Print this item

  Subprocess command prompt (Windows)
Posted by: arnaur - Sep-03-2018, 08:51 AM - Forum: General Coding Help - Replies (6)

Hello,
I'm making a little program that runs a cmd command on Windows. That command needs a password and a verification of the password from the user..... More

Print this item

  Newbie, looking for advices.
Posted by: stambus - Sep-03-2018, 05:43 AM - Forum: Web Scraping & Web Development - Replies (2)

Hello community,
I am just starting to code. I have watched all the basic tutorials and stuff, have no problems of finding specific error related qu..... More

Print this item

  Help with 'while' loop! Python 3
Posted by: rafaelssouzza - Sep-03-2018, 03:42 AM - Forum: Homework - Replies (2)

Good night, mates. I need some help

I need to develop an algorithm that generates a number between 1 and 10, asks me to try to guess it and tells me ..... More

Print this item

  Creating a program to look for the largest prime number of a number
Posted by: Wikki14 - Sep-02-2018, 11:53 PM - Forum: General Coding Help - Replies (4)

So I'm creating a code that will take on number look for all the factors of that number and then tell me what factors are prime and which ones are not..... More

Print this item

  Storing the result of a input field
Posted by: MTom5 - Sep-02-2018, 10:04 PM - Forum: Data Science - Replies (2)

I have an input field for a filepath in my script so the user can direct the script to a required spreadsheets location.

As this filepath is differ..... More

Print this item

  is this a bug or not with if...else...?
Posted by: meokey - Sep-02-2018, 09:29 PM - Forum: General Coding Help - Replies (4)

platform.python_version()
'3.5.1'
a=None; b='abc'; c = b if a == None else a + ' & ' + b
Traceback (most recent c..... More

Print this item

  Power phase question.
Posted by: Sleeper - Sep-02-2018, 08:29 PM - Forum: Bar - Replies (4)

I've had this question for a while. I'm fairly sure I am correct but wanted to ask anyway.

Most homes run on single phase power, and many industria..... More

Print this item

  tkinter listbox problem
Posted by: edoardo5782 - Sep-02-2018, 08:28 PM - Forum: GUI - Replies (5)

Hi
i have a problem with the Listbox on Tkinter.
When i select with mouse one word in the Listbox, the program give me the relative code.
If i sele..... More

Print this item

  subcommands as functions
Posted by: Skaperen - Sep-02-2018, 08:23 PM - Forum: General Coding Help - Replies (12)

it make sense to implement each subcommand as a function. but i want to be able to easily add more subcommands. i'm thinking that i would name the f..... More

Print this item

  10x10 Array of Prime Numbers
Posted by: smfox2 - Sep-02-2018, 07:56 PM - Forum: Homework - Replies (1)

I am trying to construct a 10 by 10 array of prime numbers. I am able to construct an array of prime numbers but do not understand how to restrict th..... More

Print this item

  for/else ... for/elif?
Posted by: Skaperen - Sep-02-2018, 06:39 PM - Forum: General Coding Help - Replies (2)

an else: can follow a loop to handle the case of no break statements being done in that loop. but if the first thing that needs to be d..... More

Print this item

  Infinite # of inputs
Posted by: Hermann_Fegelein - Sep-02-2018, 06:30 PM - Forum: General Coding Help - Replies (1)

Hi everybody,
How can I put an indefinite number of inputs in a program?
Let me explain myself better: (here is the code)
[python]'''ex 8
def mult..... More

Print this item

  Slicing String cell by cell
Posted by: Vigneshkumarsakthivel - Sep-02-2018, 05:59 PM - Forum: Data Science - No Replies

Hi I am absolute beginner. I have a problem in slicing string in a excel file using python.
My excel file contains the following info:
[output]
order..... More

Print this item

  Python database application
Posted by: SimonU - Sep-02-2018, 05:39 PM - Forum: News and Discussions - Replies (1)

Hi everyone,
I am very new to Python, hope you share your knowledge with me.

I need to develop an accounting application(database) with Python for..... More

Print this item

  Make my code more pythonic
Posted by: aug828 - Sep-02-2018, 04:37 PM - Forum: General Coding Help - Replies (5)

Hi,

I am a beginner in python. I've read the Fluent in Python book, and I am trying to dive deeper.
Here is a file based merge sort. I have a fi..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  No new line from print in... 1 hour ago Lou Pedroski55 General Codin...
  Python compiler 7 hours ago NeoQuant NeoQuant General Codin...
  Trading Risk management s... 8 hours ago NeoQuant NeoQuant Code sharing
  Standard template Data En... 9 hours ago Hosthubac Hosthubac Code Review
  Python Online Compiler Yesterday, 07:39 alexmaxwell1 ichsanputr News and Disc...
  Python is not working on ... 11-28, 10:44 lary_p noisefloor General Codin...
  Help with Serial.write in... 11-28, 04:44 racingsubby Larz60+ General Codin...
  Can I develop a live vide... 11-27, 04:48 mtrkhan mamta25 Web Scraping ...
  silent deployment Python ... 11-26, 21:58 Bummibaer Larz60+ News and Disc...
  Proposal for PEP 11-26, 15:53 matt Gribouillis News and Disc...
  My regex function is not ... 11-26, 08:47 Moltar1997 perfringo General Codin...
Most views
  The best Prog... 579497
  Tutorial Requ... 512840
  Web Scraping ... 442365
  Newbie with P... 386396
  New Users Int... 381719
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 7393
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
adityaN Today
NeoQuant Yesterday
Hosthubac Yesterday
ifdainstitute7 Yesterday
MOHAMMAD_mk Yesterday

User Panel Messages

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