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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 18,933
» Latest member: new2pi
» Forum threads: 37,572
» Forum posts: 170,759

Full Statistics

Online Users
There are currently 345 online users.
» 0 Member(s) | 337 Guest(s)
Facebook, Yandex, Applebot, AOL, Bing, Google, Baidu

Latest Threads
DEC pack, unpack and disk...
Forum: General Coding Help
Last Post: Pedroski55
12 minutes ago
» Replies: 9
» Views: 313
Downloading Page Source F...
Forum: General Coding Help
Last Post: Pedroski55
1 hour ago
» Replies: 9
» Views: 197
Webscrape script, add to ...
Forum: Web Scraping & Web Development
Last Post: sawtooth500
3 hours ago
» Replies: 2
» Views: 128
Most efficient way to rol...
Forum: General Coding Help
Last Post: sawtooth500
3 hours ago
» Replies: 1
» Views: 31
Explosion hits enemies, t...
Forum: Game Development
Last Post: deanhystad
4 hours ago
» Replies: 3
» Views: 63
raspberry pi in a python ...
Forum: General Coding Help
Last Post: deanhystad
9 hours ago
» Replies: 4
» Views: 153
end boss aiming at player
Forum: Game Development
Last Post: flash77
Yesterday, 06:57 PM
» Replies: 7
» Views: 336
HTTP, python size e uploa...
Forum: Networking
Last Post: it6
Yesterday, 01:06 PM
» Replies: 0
» Views: 65
IP address for users
Forum: Networking
Last Post: ebn852_pan
Yesterday, 08:35 AM
» Replies: 1
» Views: 1,136
Do any of you work with a...
Forum: Bar
Last Post: phpjunkie
Yesterday, 08:26 AM
» Replies: 0
» Views: 64

 
  pycharm
Posted by: IkrKobe - Jun-04-2020, 12:32 AM - Forum: General Coding Help - Replies (2)

hello
im new to programming and trying to learn it myself. I have this code for a instagram bot and its all done. The last step that i have to do is..... More

Print this item

  Installing Error - Python 2.7.8
Posted by: saranana - Jun-03-2020, 11:44 PM - Forum: General Coding Help - Replies (2)

Hi hi!

I'm trying to teach myself python using a somewhat outdated book. Im just going through it to get a handle on some of the basics but this bo..... More

Print this item

  invalid keyword arguments error
Posted by: sagpal - Jun-03-2020, 08:58 PM - Forum: General Coding Help - Replies (3)

Hi,
can anyone help me with this.


[python]
import optparse
import socket
from socket import *


def connScan(tgtHost, tgtPort):
try..... More

Print this item

  print output on Jenkins
Posted by: Pench - Jun-03-2020, 08:06 PM - Forum: General Coding Help - Replies (1)

I'm new to python, please help on this requirement.
I wrote a simple python script to execute on Jenkins pipeline.
calling bat script on Jenkins
b..... More

Print this item

  Syllable Count Function
Posted by: pav1983 - Jun-03-2020, 08:05 PM - Forum: Homework - Replies (3)

Create a function that counts the number of syllables a word has. Each syllable is separated with a dash -.

Examples
number_syllables("buf-fet") ➞..... More

Print this item

  copying an Excelsheet with its conent and renaming into different names
Posted by: deheugden - Jun-03-2020, 07:14 PM - Forum: General Coding Help - Replies (6)

Hello,

I have been playing with Python for several months now, but progress is going very slow. I am still doing small scripts, am stuck at the fun..... More

Print this item

  Create a GUI for alrady written code.
Posted by: francois072 - Jun-03-2020, 06:11 PM - Forum: GUI - Replies (5)

I'm a new Python user and I'm still learning so I decided to write a simple quiz program in Pycharm.
Only problem is I can't find a tutorial anywhere..... More

Print this item

  Multiproccessing ValueError: Pool not running when running parallel functions
Posted by: Gilush - Jun-03-2020, 06:02 PM - Forum: General Coding Help - Replies (1)

[Image: gUGml.jpg]

I get this error when clicking the submit button the 2nd time.
My main target is to print the outpu..... More

Print this item

  module to store functions/variables and how to call them?
Posted by: mstichler - Jun-03-2020, 05:57 PM - Forum: General Coding Help - Replies (3)

Can I create a module to store all my functions?
for instance could i have a module that contains every function I need for my program, and if so how..... More

Print this item

  Python Assignment 3 - Applied Data Science - 2.3
Posted by: eyavuz21 - Jun-03-2020, 05:42 PM - Forum: Homework - Replies (8)

Hey all,

I have the following code below:

[python]
import pandas as pd
import numpy as np
from scipy import stats
import matplotlib.pyplot ..... More

Print this item

  Test a file for a string without opening it?
Posted by: tester_V - Jun-03-2020, 05:11 PM - Forum: General Coding Help - Replies (2)

Hi,
I have a lot of files in a directory,
Is there any good way to test a file for a string without opening it?
[python]
String =’Run Time’
If s..... More

Print this item

  zipfile
Posted by: sagpal - Jun-03-2020, 05:06 PM - Forum: General Coding Help - Replies (2)

i am getting error "expected bytes, got str"

here is the python code:
----------------------
[python]import zipfile
zFile = zipfile.ZipFile("evi..... More

Print this item

  Pandas installation error
Posted by: pyzyx3qwerty - Jun-03-2020, 04:34 PM - Forum: General Coding Help - Replies (3)

I use VS Code, with Anaconda installer on Mac. So I tried using pandas package for the first time and I wasn't sure if I had the package or not. I ran..... More

Print this item

  While loop = False
Posted by: NectDz - Jun-03-2020, 04:08 PM - Forum: General Coding Help - Replies (1)

I am making a tic tac toe game and I set a while loop = game but when I call my check_X_Repeat function to make it false it does not do so I want to k..... More

Print this item

  How to eliminate unwanted spaces
Posted by: Mohan - Jun-03-2020, 04:02 PM - Forum: General Coding Help - Replies (5)

Hi,
I am new to python. I have a device. This device gives serial data. When I read the serial data using python I can see that data is something lik..... More

Print this item

  How to use a variable from a flask page to another
Posted by: Need_Not - Jun-03-2020, 03:59 PM - Forum: General Coding Help - No Replies

Hello so i'm trying to take the variables guild_api,guildname, and guild_name from my flask page /guild/ and be able to also use them on flask game /g..... More

Print this item

  How can I make this server stop listening for connections to sockets
Posted by: Emekadavid - Jun-03-2020, 02:28 PM - Forum: General Coding Help - No Replies

I was using this tutorial online which explains a simple client-server script for python networking. The server side ran well but when I closed the cl..... More

Print this item

  Expanding RPS to tkinter
Posted by: menator01 - Jun-03-2020, 01:56 PM - Forum: GUI - Replies (4)

First I apologize for pasting all the code.

So I'm trying to expand my rps game to tkinter but, I cant seem to figure out how to have one instance ..... More

Print this item

  access dictionary with keys from another and write values to list
Posted by: redminote4dd - Jun-03-2020, 12:13 PM - Forum: General Coding Help - Replies (6)

Hello!

I have a list of keys from a dictionary and I want to these keys to get the values from another dictionary where the keys are the same and w..... More

Print this item

  How to use nb-black python cde formatter
Posted by: ErnestTBass - Jun-03-2020, 11:38 AM - Forum: General Coding Help - Replies (3)

I have used the python code formatter nb_black. I have not used it in about a year. I have some python code that needs formtting. I am always a little..... More

Print this item

  How can I change a string.
Posted by: Mike Ru - Jun-03-2020, 10:03 AM - Forum: General Coding Help - Replies (3)

I have a string. I need to find words and change them if it there are over there.
I am trying something like this. But I doesn't work.
I need to get..... More

Print this item

  problem with the return of flask
Posted by: loutsi - Jun-03-2020, 10:03 AM - Forum: Web Scraping & Web Development - Replies (4)

I have already built an lstm model and now I want to post some values and get back the results.

so when I go to the postman and in http://127.0.0.1..... More

Print this item

  Unable to install virtual environment on python 3.8.3
Posted by: Allen10 - Jun-03-2020, 09:59 AM - Forum: General Coding Help - Replies (4)

Hi,
I tried installing a virtual environment on python 3.8.3 and I kept getting the error shown below:
"Error: could not find a version that satisfi..... More

Print this item

  Basic logical errors
Posted by: cpopescu - Jun-03-2020, 09:35 AM - Forum: General Coding Help - Replies (3)

Hi everybody!

I'm trying to learn python from a book written by Eric Matthes. Right in the introduction he mentions how, as a child, he programmed ..... More

Print this item

  Access phone via Bluetooth
Posted by: maxwell - Jun-03-2020, 09:10 AM - Forum: General Coding Help - Replies (2)

Dear all,
I am new to Python, so please, bear with me. I have a PI4 (running Raspbian) with a Raspberry touchscreen which is all working fine. Ultima..... More

Print this item

  [split] Very basic coding issue
Posted by: aary - Jun-03-2020, 08:47 AM - Forum: General Coding Help - Replies (4)

[python]age = int(input('please enter your age: '))
try:
if age > 0:
print("You are", age, "years old!")
elif age > 90:
p..... More

Print this item

  string parsing with re.search()
Posted by: delahug - Jun-03-2020, 08:24 AM - Forum: Web Scraping & Web Development - Replies (9)

hi,

i've been trying to parse a string using the re.search function but am running into trouble when it encounters ½ (the numeral representation of..... More

Print this item

  Loop In Python
Posted by: ankitdixit - Jun-03-2020, 07:09 AM - Forum: News and Discussions - Replies (6)

Hello All, I am learning python and I want to know the difference between while loop, do while loop, and for loop? Can anyone tell me the difference w..... More

Print this item

  4 tries choice question, one difficulty
Posted by: extricate - Jun-03-2020, 07:04 AM - Forum: Homework - Replies (4)

Hi there,

I have come up with this code, after 4 tries, it is supposed to say "Out of tries" but before it says "Out of tries", it will say "Try ag..... More

Print this item

  [Socket] Is there a way to recognize a client by their device?
Posted by: SheeppOSU - Jun-03-2020, 04:37 AM - Forum: Networking - Replies (1)

I'm using socket to make a type of online game, so I plan to make a login system. Is there a way to recognize a device that has logged in before, for ..... More

Print this item

  Very basic coding issue
Posted by: mstichler - Jun-03-2020, 04:08 AM - Forum: General Coding Help - Replies (3)

Hello,

I am teaching myself python and am in the very very beginning stages and have come across my first snag. I'm unsure why this code isn't work..... More

Print this item

  CSV date format
Posted by: Kumarkv - Jun-03-2020, 03:00 AM - Forum: General Coding Help - Replies (1)

Hi,

I have a CSV with two columns with a date and float value
The date format is 2019/04/02 Tuesday 08:00:00
yyyy/MM/dd EEEE HH:mm:ss

How to c..... More

Print this item

  Merge 2 dataframes but avoid double summing of rows?
Posted by: vinaysalian17 - Jun-03-2020, 01:48 AM - Forum: General Coding Help - No Replies

Hi,

I am merging 2 dataframes (DF1 and DF2) with many to many relationships.
The merge works fine but the result duplicates the "Amount" values in..... More

Print this item

  Create image on a Toplevel using tkinter
Posted by: ViktorWong - Jun-02-2020, 11:49 PM - Forum: GUI - Replies (3)

I'm using tkinter to create a login system. The main window goes as:

[python]
my_window=tkinter.Tk()
my_window.title('Welcome To Login System 1.0..... More

Print this item

  Reading Multiple Lists Using SUM function
Posted by: dgrunwal - Jun-02-2020, 09:47 PM - Forum: General Coding Help - Replies (6)

Hello,

Here is the code I am trying to improve - can longer lists be read from a file and looped through and printed?

[python]
p8262 = [331, ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  DEC pack, unpack and disk... 12 minutes ago Curbie Pedroski55 General Codin...
  Downloading Page Source F... 1 hour ago zunebuggy Pedroski55 General Codin...
  Webscrape script, add to ... 3 hours ago jjcooper sawtooth500 Web Scraping ...
  Most efficient way to rol... 3 hours ago sawtooth500 sawtooth500 General Codin...
  [PyGame] Explosion hits e... 4 hours ago flash77 deanhystad Game Developm...
  raspberry pi in a python ... 9 hours ago Raysz deanhystad General Codin...
  [PyGame] end boss aiming ... Yesterday, 18:57 flash77 flash77 Game Developm...
  HTTP, python size e uploa... Yesterday, 13:06 it6 it6 Networking
  IP address for users Yesterday, 08:35 Robots ebn852_pan Networking
  Do any of you work with a... Yesterday, 08:26 phpjunkie phpjunkie Bar
  Having difficulty with th... Yesterday, 07:20 sawtooth500 Gribouillis General Codin...
Most views
  The best Prog... 496502
  Web Scraping ... 368869
  Tutorial Requ... 357106
  Newbie with P... 298839
  Thread remain... 283993
Most reputation
buran 582
snippsat 499
Larz60+ 452
Gribouillis 341
deanhystad 315
Most replies
  New Users Int... 432
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11891
buran 8094
snippsat 7138
deanhystad 6326
metulburr 5150
Top referrers
Googlepro 20
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
new2pi Yesterday
tensairtms Yesterday
Phoeben Yesterday
Westikane Yesterday
it6 Yesterday

User Panel Messages

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