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,271
» Latest member: aminrony1999
» Forum threads: 38,787
» Forum posts: 175,856

Full Statistics

Online Users
There are currently 34 online users.
» 0 Member(s) | 30 Guest(s)
Bing, Google, Applebot

Latest Threads
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
8 hours ago
» Replies: 3
» Views: 166
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
Yesterday, 11:47 AM
» Replies: 4
» Views: 155
PermissionError: [Errno 1...
Forum: GUI
Last Post: Tuurbo46
Yesterday, 08:44 AM
» Replies: 2
» Views: 120
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Nov-15-2025, 04:07 PM
» Replies: 2
» Views: 171
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Nov-15-2025, 01:00 PM
» Replies: 5
» Views: 348
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 67
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Nov-14-2025, 06:38 PM
» Replies: 0
» Views: 113
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 361
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 205
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 316

 
  Looping Through Linux Filesystems
Posted by: anelliaf - Mar-02-2018, 07:44 PM - Forum: General Coding Help - Replies (5)

Hello,

I'm new to Python and using 3.6 for this code. I wrote the code below to report on a Linux filesystem called '/u01'. What I'd like to do i..... More

Print this item

  Using hashlib for user password
Posted by: seadoofanatic - Mar-02-2018, 05:54 PM - Forum: Homework - Replies (4)

So I have to hash a user entered password and then write the hashed password to a file. The code I have puts the clear text password into the file not..... More

Print this item

  TypeError: this function takes 3 arguments (5 given)
Posted by: mario1919 - Mar-02-2018, 03:25 PM - Forum: Game Development - Replies (1)

Where's error?

TypeError: this function takes 3 arguments (5 given)

Print this item

  How to define train set and test set
Posted by: Raj - Mar-02-2018, 02:56 PM - Forum: Data Science - Replies (6)

Hi,
I am using random forest method for regression,

I sue below comment:
X_train,X_test,Y_train,Y_test=train_split(x,y,test_size=0.3,random_state..... More

Print this item

  Is croatia busy end of august?
Posted by: smalljenny - Mar-02-2018, 02:12 PM - Forum: Bar - Replies (1)

Hello

I want to book a little road trip for 9 nights end of august into early September but my question is will it be very busy? I know the peak time..... More

Print this item

  Am i doing something wrong with this piece of code
Posted by: pythoneer - Mar-02-2018, 01:30 PM - Forum: General Coding Help - Replies (3)

i am trying to get an output as follows:
[quote]1 1 1
1 1 2
1 1 3
1 2 2
1 2 3
1 2 1
1 3 3
1 3 1
1 3 2
2 2 2
2 2 3
2 2 1
2 3 3
2 3 1
2 3..... More

Print this item

  How to read html tags dynamically generated?
Posted by: amandacstr - Mar-02-2018, 01:25 PM - Forum: Web Scraping & Web Development - Replies (5)

Hi!

I'm very newbie in Python and I would like to know how can I get/read a html code dynamically generated. I heard I can use PhantomJS but could ..... More

Print this item

  pip fatal error
Posted by: MikeALC - Mar-02-2018, 12:37 PM - Forum: General Coding Help - Replies (2)

Hello all,

I an new to python and have install python 3.6.3 on a window server machine and have had some issues with using 'pip'.
When I have used..... More

Print this item

  get the content of the byte as string
Posted by: ricardons - Mar-02-2018, 11:49 AM - Forum: General Coding Help - Replies (5)

hi

i want to transform

b'p107\xff\xff\xff'
i.e a byte

into

'p107\xff\xff\xff'
i.e a string


ho..... More

Print this item

  portion of the bytes to string
Posted by: ricardons - Mar-02-2018, 09:52 AM - Forum: General Coding Help - Replies (1)

Hi, I'm not a programing guy and i have some difficulty doing something that i imagine is very simple for most of you

I have some bytes (encode as la..... More

Print this item

  2D Lists
Posted by: garikhgh0 - Mar-02-2018, 08:44 AM - Forum: General Coding Help - Replies (2)

Hi. I have a question on 2D lists or 2D arrays.

So, if there is need beforehand to declare one of the above mentioned, how to aproach to it. As it ..... More

Print this item

  What is wrong in this code
Posted by: sylas - Mar-02-2018, 06:03 AM - Forum: General Coding Help - Replies (5)

[python]
import sys
print("open_file.py")
content=dir(sys)
print(content)

rep = 'y'
while (rep != 'n'):
name = input('Enter the name of t..... More

Print this item

  Feature extraction algorithm
Posted by: lukaznt - Mar-02-2018, 04:31 AM - Forum: Data Science - Replies (1)

Hello, fresh noob here.
Firstly I'd like to point out that my knowlegde on Python is below basic, so bear with me please.

I'm currently researchin..... More

Print this item

  Was I crazy to delete my only copy of this script?
Posted by: league55 - Mar-02-2018, 03:25 AM - Forum: Bar - Replies (4)

I wrote a script that generated random strings of ascii letters with the randomness weighted according to a letter frequency table based on how often ..... More

Print this item

  urllib urlopen getting error 400 on 1 specific page
Posted by: glidecode - Mar-01-2018, 09:42 PM - Forum: Web Scraping & Web Development - Replies (4)

So I'm trying to webscrape some info from a page with stock quotes. I'm getting an error 400, which only happens on this page - have tried a range of ..... More

Print this item

  Help! Module cannot be found!
Posted by: DennisSally - Mar-01-2018, 07:42 PM - Forum: General Coding Help - Replies (1)

So im trying to install pygame(pygame-1.9.2a0.win32-py3.2.msi)

Everytime i try installing it cannot find python so i redirect it to where its been ..... More

Print this item

  socket.gaierror: [Errno -2] Name or Service not known
Posted by: ItsAGuyaneseTing - Mar-01-2018, 06:56 PM - Forum: Networking - Replies (1)

Hello, so I'm using Python 3.4 and currently I'm trying to get this code that I found to work. So what I want to do is log some information / access i..... More

Print this item

  Adding a Frame
Posted by: litaboss - Mar-01-2018, 05:54 PM - Forum: GUI - Replies (2)

It is the simple program, where I tried to make the Frame widget clear for me, but something went wrong. When I start the program:
[python]from tkint..... More

Print this item

  Savitzky-Golay Filter
Posted by: muhsin - Mar-01-2018, 05:41 PM - Forum: Data Science - Replies (3)

Hello,

I am trying to filter fourier amplitude using Savitzky-Golay Filter. Can you please help me with the the following code. I get an error sayi..... More


Attached Files

.txt   data.txt (Size: 197.96 KB / Downloads: 63)
Print this item

  Assigning a new variable in a IF loop
Posted by: pythoneer - Mar-01-2018, 05:09 PM - Forum: General Coding Help - Replies (5)

I am trying a very basic IF loop in which i am trying to create a new variable like below
[python]for i in range(1,16):
for j in range(i,i+14):
..... More

Print this item

  Specific Issue with pysnmp
Posted by: Try_to_script - Mar-01-2018, 04:34 PM - Forum: Networking - Replies (1)

I am just getting started with Python and was hoping to use it to query routers and switches for information like device names, serial numbers etc. My..... More

Print this item

  I'm not sure why this code isn't printing... Can someone tell me?
Posted by: Wilminer4 - Mar-01-2018, 03:57 PM - Forum: General Coding Help - Replies (5)

Can someone tell me what's wrong with the code down below? It isn't printing and I've tried removing the int() and all that but it just won't print? I..... More

Print this item

  serial communication write(comand) and read(result)
Posted by: ricardons - Mar-01-2018, 03:56 PM - Forum: General Coding Help - Replies (1)

Hi

maybe someone could have a look at my code or suggest a better one (or another place to look for)


I need to do serial communication with a ..... More

Print this item

  Aggregate multiple telnet connections
Posted by: Jibeji - Mar-01-2018, 03:15 PM - Forum: Networking - Replies (1)

Hello,
Fist of all, I am a real newbie with Python but I know some other languages. I hope I will be able to learn Python...

I have 3 devices whic..... More

Print this item

  I'm asking about combining Vue.js and the Python framework.
Posted by: passion044 - Mar-01-2018, 02:26 PM - Forum: Web Scraping & Web Development - Replies (1)

1. The front end uses vue.js, and the back end uses Python. I'm trying to use the framework. Among the Python frameworks are Django and Flask, which i..... More

Print this item

  integrating Pydesigner and python
Posted by: JackDinn - Mar-01-2018, 02:22 PM - Forum: GUI - No Replies

Im sure there must be an answer for this but after 3 days of googling i cant figure this so sorry if its already been asked 100 times.

After using ..... More

Print this item

  Packages and Modules
Posted by: grkiran2011 - Mar-01-2018, 12:30 PM - Forum: General Coding Help - Replies (1)

Hi Viewer,

import my_lib
import my_lib.my_sound
When I checked locals() listing, I do not see any difference. How does py..... More

Print this item

  how to combine mumtiple for loops in single loop
Posted by: anna - Mar-01-2018, 11:43 AM - Forum: General Coding Help - Replies (26)

[python]from easysnmp import Session
import time
start = time.time()
host = '10.10.10.1'
intnames = []
intOpes = []
intAdm = []
session = Se..... More

Print this item

  Dynamic Polar Plor
Posted by: mounikapaladugu - Mar-01-2018, 09:36 AM - Forum: GUI - Replies (1)

Hello,

I am having two data values. One is of distance measured using UltraSonic sensor and the other is angle, varied using Stepper motor. Now, I ..... More

Print this item

  Python Challenge online - 30 Questions
Posted by: JulienC - Mar-01-2018, 09:28 AM - Forum: News and Discussions - Replies (1)

Hi guys,

If you want to test your skills and have fun you can take part at the Python Challenge organized by Cisco.

Arrow https://editx.eu..... More

Print this item

  count string occurrences of 2nd file in lines of first
Posted by: showkat - Mar-01-2018, 06:03 AM - Forum: General Coding Help - Replies (1)

I need to generate permutation of some words (A T G C ) actually nucleotides for di-composition (eg AA AT AG AC), tri-composition (AAA AAT AAC AAG), t..... More

Print this item

  break Statements and else Clause on Loops
Posted by: Phytonnewbie - Mar-01-2018, 03:53 AM - Forum: General Coding Help - Replies (2)

Hello Python Masters,
I am an absolute beginner in Phyton, trying to teach myself, and first time member of this forum. Pardon me for asking for help..... More

Print this item

  Textblob issue on 3.5
Posted by: Sebt1890 - Mar-01-2018, 03:20 AM - Forum: General Coding Help - Replies (2)

Hey everyone!

I have to use Textblob to translate a sentence to either Spanish or Arabic.

Before I begin, I am running Ubuntu and boot up pytho..... More

Print this item

  return variable in func
Posted by: mepyyeti - Mar-01-2018, 02:07 AM - Forum: General Coding Help - Replies (1)

[python]
#!usr/bin/env python3

#ufunc0.py

import sys

def word2(a):
a1= a+a
print(a1)
return a1
while True:
move = input('\'g\' to s..... More

Print this item

  string format
Posted by: ShaneP - Mar-01-2018, 02:01 AM - Forum: General Coding Help - Replies (1)

I'm pretty new to python & programming in general. I cant figure out how to print gold as a string.

[python] class Item:
def __init__(self, na..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Graph Interpolate Difficu... 8 hours ago Tuurbo46 deanhystad General Codin...
  [SOLVED] Access keys and ... Yesterday, 11:47 Winfried Winfried General Codin...
  PermissionError: [Errno 1... Yesterday, 08:44 Tuurbo46 Tuurbo46 GUI
  How to make ball stay wit... 11-15, 16:07 nathanael deanhystad General Codin...
  sorting a lisr of file pa... 11-15, 13:00 Skaperen DeaD_EyE News and Disc...
  conditional nested loops 11-14, 23:31 Skaperen Skaperen News and Disc...
  PyQt6 QWidgets and system... 11-14, 18:38 stevecoh1 stevecoh1 GUI
  [solved] re.split issue 11-14, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... 11-14, 15:33 pbkurd Larz60+ General Codin...
  New to python and coding 11-13, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... 11-13, 11:52 yutaozhou noisefloor News and Disc...
Most views
  The best Prog... 579103
  Tutorial Requ... 511269
  Web Scraping ... 442066
  Newbie with P... 386130
  New Users Int... 378441
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 8196
snippsat 7389
deanhystad 6914
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
aminrony1999 Yesterday
fobby888 Yesterday
digitalboy346 Yesterday
ben9090o Yesterday
ViktoriaMetodieva Yesterday

User Panel Messages

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