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,260
» Latest member: nathanael
» Forum threads: 38,784
» Forum posts: 175,840

Full Statistics

Online Users
There are currently 56 online users.
» 2 Member(s) | 50 Guest(s)
Bing, Google, Applebot, deanhystad, kshahzad1985

Latest Threads
How to make ball stay wit...
Forum: General Coding Help
Last Post: nathanael
27 minutes ago
» Replies: 0
» Views: 12
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
4 hours ago
» Replies: 0
» Views: 39
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
4 hours ago
» Replies: 10
» Views: 210
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
7 hours ago
» Replies: 3
» Views: 110
New to python and coding
Forum: Homework
Last Post: jefsummers
Yesterday, 07:58 PM
» Replies: 6
» Views: 196
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Yesterday, 11:52 AM
» Replies: 6
» Views: 377
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
Nov-12-2025, 07:26 PM
» Replies: 2
» Views: 126
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-12-2025, 10:11 AM
» Replies: 6
» Views: 261
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 412
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 156

 
  Can't get .py to run on Win10 command line
Posted by: jonesin1974 - Nov-07-2017, 02:36 PM - Forum: General Coding Help - Replies (3)

Hi,

I'm trying to run my python script from a Windows 10 command prompt (batch file).

It works if I'm in the correct directory of where my pytho..... More

Print this item

  get positive number from a list if there's the same number but negative
Posted by: haye - Nov-07-2017, 02:28 PM - Forum: General Coding Help - Replies (14)

list_one = [-8, 8, 144, 17]

def test(lis):
    return min(lis, key=abs)

print test(list_one)
Output:
-8
i want to print..... More

Print this item

  django rest framework - custom routes
Posted by: SparrowhawkMMU - Nov-07-2017, 11:36 AM - Forum: Web Scraping & Web Development - Replies (2)

Hi there,

Firstly, I hope that this query is in the correct format, apologies if it breaks any forum guidelines - let me know and I'll amend it.
..... More

Print this item

  Unable to delete duplicates in excel with Python
Posted by: tysondogerz - Nov-07-2017, 07:13 AM - Forum: General Coding Help - Replies (2)

I am trying to delete duplicates but the job just finishes with an exit code 0 and does not delete any duplicates.

I have attempted to do this wit..... More

Print this item

  In Search of 3rd Party Proxy / IP Address Rotation Software
Posted by: bmccollum - Nov-07-2017, 05:12 AM - Forum: Web Scraping & Web Development - Replies (3)

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  applying 2 conditions to a loop
Posted by: Pedroski55 - Nov-07-2017, 04:38 AM - Forum: General Coding Help - Replies (1)

SOLVED: I was trying
if maxScore == 'None':
continue

I needed to write

if str(maxScore) == 'None':
continue

The situation is this:

1. I am..... More

Print this item

  Can't change Right to left id spawning/ movement to top to bottom
Posted by: Kingrocket10 - Nov-07-2017, 03:58 AM - Forum: General Coding Help - Replies (3)

Ive been trying to change the way my yblocks in my game move, they go (right to left) at this point but I want them to move (top to bottom) but I can'..... More

Print this item

  Failed attempt to install pyserial
Posted by: skeeve - Nov-07-2017, 03:09 AM - Forum: General Coding Help - Replies (4)

I got pyserial-3.4.tar.gz from https://pypi.python.org/pypi/pyserial .
I untarred it.
As root, I changed to its directory and ran
python setup.py i..... More

Print this item

  on a system w/o python3
Posted by: Skaperen - Nov-07-2017, 01:29 AM - Forum: News and Discussions - Replies (23)

lots of my scripts work fine on python3.  a few even work better when run on python3.  only a few others need python2 and i hope to eventually recode ..... More

Print this item

  sniffing real time with pyshark or scapy
Posted by: jeanapala - Nov-06-2017, 11:43 PM - Forum: Networking - Replies (2)

Hello , i'am looking for a way to sniff the traffic in real time and save it on a cap file or csv so i can load it in logstash .
(i tried pyshark but..... More

Print this item

  Raspberry Pi 3 Machine output log
Posted by: Jordancantcode - Nov-06-2017, 10:49 PM - Forum: General Coding Help - No Replies

So far this is the code I've attempted
[python]
#!/usr/bin/python
import RPi.GPIO as g
import csv
import datetime
import time
output1 = '/home/..... More

Print this item

  Extracting random word from list
Posted by: zykbee - Nov-06-2017, 10:08 PM - Forum: General Coding Help - Replies (13)

I created a little program here, and I'm having trouble with this part ---
[python]
var1 = random.choice(ggg[0])
var2 = rando..... More

Print this item

  Issue with my first Python test.
Posted by: MattH - Nov-06-2017, 10:08 PM - Forum: Web Scraping & Web Development - Replies (1)

I apologise for asking silly questions. I should think I will look at this in a couple of months and laugh at myself.

So here it goes: I've starte..... More

Print this item

  List problem
Posted by: mp3909 - Nov-06-2017, 09:59 PM - Forum: General Coding Help - Replies (2)

Hi,

I need to write a program that will reverse the first k characters for every 2k characters.
If there are less than k characters left, reverse ..... More

Print this item

  How to call subprocess after for loop
Posted by: viru - Nov-06-2017, 07:45 PM - Forum: Data Science - No Replies

I have pyspark script like below. In this script, I am collecting stdout and stderr of the script in a file and storing in local.

In ..... More

Print this item

  How to measure an inclined beam width and height in image using python?
Posted by: zyb1003 - Nov-06-2017, 07:35 PM - Forum: General Coding Help - Replies (1)

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  New to Python, what now?
Posted by: MattH - Nov-06-2017, 07:02 PM - Forum: Web Scraping & Web Development - Replies (6)

Hey guys. I'm new to Python and this forum. I've been an SEO Expert for the past five years, but I want to spread my wings and make something beautifu..... More

Print this item

  SMBUS Support
Posted by: RWP - Nov-06-2017, 05:59 PM - Forum: General Coding Help - Replies (1)

I would like to transfer five integer values from Python to an Arduino using SMBus, but I have run into a lack of useful documentation on SMBus. The ..... More

Print this item

  [split] New at Python programming
Posted by: Akash - Nov-06-2017, 05:23 PM - Forum: GUI - Replies (1)

from tkinter import *
import random
import time

class val:
def __init__(self):
self.values=
self.index=0
def assign(self):
self.values.appen..... More

Print this item

  Login System
Posted by: ItsBlueey - Nov-06-2017, 04:57 PM - Forum: General Coding Help - Replies (1)

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  need help in optionMenu using tkinter
Posted by: Lizard - Nov-06-2017, 02:24 PM - Forum: GUI - Replies (4)

HI..I need help
I got a code which use optionMenu tkinder
the list is too long..It stretch from the full height of the screen

May i know how to l..... More

Print this item

  Extract value
Posted by: Schwarzschild - Nov-06-2017, 12:43 PM - Forum: General Coding Help - Replies (2)

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  Use of Globals
Posted by: CWatters - Nov-06-2017, 12:07 PM - Forum: General Coding Help - Replies (5)

Looking for some clarification on the use of global variables.

Suppose I need a single variable called "Logged_In" that's available everywhere in ..... More

Print this item

  python pip - V points to old version of python
Posted by: metalray - Nov-06-2017, 10:04 AM - Forum: General Coding Help - Replies (5)

Dear Python Experts,

When I run pip -V in my virtual environment I read:

(env_python36) C:\Users\myuser\Downloads\iwt_django36\iwt_django\iwt_dj..... More

Print this item

  how to connect two python script one is located on the server and another in local
Posted by: Sachin_d - Nov-06-2017, 08:51 AM - Forum: General Coding Help - Replies (1)

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  while true loop
Posted by: candylicious - Nov-06-2017, 08:33 AM - Forum: Homework - Replies (3)

how do I break out of a While True loop in python3

Print this item

  How to manipulate csv
Posted by: Prince_Bhatia - Nov-06-2017, 08:17 AM - Forum: General Coding Help - Replies (4)

hi,

i have a csv file (attached the file with the name python_dictionary.csv)
in the attached format has three columns Key, value1 and valu..... More


Attached Files

.csv   python_dictionary.csv (Size: 381 bytes / Downloads: 732)
.csv   Desired_format.csv (Size: 306 bytes / Downloads: 755)
Print this item

  Script to send data
Posted by: vasuv - Nov-06-2017, 06:27 AM - Forum: General Coding Help - Replies (1)

Hi All,

I am newbie to Unix and Shell script and Python. Can you please help me to write a Python script.

Below is my requirement.

1.Send in ..... More

Print this item

  Replace slice in list comperhensions
Posted by: fstefanov - Nov-06-2017, 01:48 AM - Forum: General Coding Help - Replies (2)

Is there a better way of replacing [-2] position which is == '1' with '2'.
[python]numbers = ['10237310', '10230010']
newlist = [b[0:-2] + '2' + b[-..... More

Print this item

  wanted: python code: sleep to a time period
Posted by: Skaperen - Nov-06-2017, 01:40 AM - Forum: News and Discussions - Replies (2)

i would like to have python code, and will eventually write it if no one else has, to sleep until a specified time period, such as a minute.  i have w..... More

Print this item

  Common Tasks
Posted by: metulburr - Nov-05-2017, 11:55 PM - Forum: Game Tutorials - Replies (19)

This thread is a series of posts that include an example that are commonly asked on the forum. It is more efficient to make a thread containing them a..... More

Print this item

  Hangman game
Posted by: jsirota - Nov-05-2017, 08:38 PM - Forum: Homework - Replies (2)

Hello, I have a homework assignment that I am having difficulty with. If anyone can help it is greatly appreciated! Thanks Here is the question:

Us..... More

Print this item

  How to run a file with smb.py!!
Posted by: cscacsa - Nov-05-2017, 07:59 PM - Forum: Networking - Replies (1)

Hi. how i can use smb.py and smbConnection.py from impacket to run a file?
I'm looking ..... More

Print this item

  help im new
Posted by: bbenjb11 - Nov-05-2017, 07:36 PM - Forum: General Coding Help - Replies (2)

I'm new to python, and have basic understanding of a couple coding language like basic operators but I want to learn python extensively because it see..... More

Print this item

  How to use python variable in javascript
Posted by: arun28sharma44 - Nov-05-2017, 03:52 PM - Forum: General Coding Help - No Replies

I have create a GUI to take user information and use it for proxy authentication

proxy = self.pr.text()
port = self.po.text()
username = self.un...... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to make ball stay wit... 27 minutes ago nathanael nathanael General Codin...
  PyQt6 QWidgets and system... 4 hours ago stevecoh1 stevecoh1 GUI
  [solved] re.split issue 4 hours ago paul18fr deanhystad General Codin...
  Please guide me to comple... 7 hours ago pbkurd Larz60+ General Codin...
  New to python and coding Yesterday, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... Yesterday, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
  Help with Serial.write in... 11-12, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 05:27 Oshadha mamta25 Data Science
Most views
  The best Prog... 578960
  Tutorial Requ... 510435
  Web Scraping ... 441973
  Newbie with P... 385992
  New Users Int... 377030
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+ 12108
buran 8195
snippsat 7388
deanhystad 6910
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
nathanael Today
JamesFalkner Today
stevecoh1 Today
Bamboo Today
TomTMH Yesterday

User Panel Messages

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