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,312
» Latest member: elizabethlittle6258
» Forum threads: 38,801
» Forum posts: 175,924

Full Statistics

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

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

 
  TypeError: can't contact str to bytes
Posted by: MartyXO - Apr-28-2018, 08:38 AM - Forum: Web Scraping & Web Development - No Replies

Hello dear friends!
I writing bruteforce script for fun.
And then I press enter (if I choosing wordlist) for choose darkstain-wl.txt I get error: Ty..... More

Print this item

  Job - Python developer - Lyon - France
Posted by: Cott - Apr-28-2018, 07:19 AM - Forum: Jobs - No Replies

You are a versatile software engineer willing to implement data processing solutions, and take part in innovative projects for international customers..... More

Print this item

  Need help with code
Posted by: Cerberus - Apr-28-2018, 06:59 AM - Forum: General Coding Help - Replies (2)

so i have this code but it wont seem to work can anyone help me?

[python]
# Enter Data
tag=raw_input("Enter Discord Tag ")
import time
import p..... More

Print this item

  test if a file really has Python code
Posted by: Skaperen - Apr-28-2018, 05:33 AM - Forum: News and Discussions - Replies (2)

i have found that the "file" command in Ubuntu Linux is doing a poor job at recognizing Python files. i ran it through all files in "/usr" that end i..... More

Print this item

  Python file parsing, can't catch strings in new line
Posted by: Philia - Apr-28-2018, 04:20 AM - Forum: General Coding Help - Replies (5)

So Parsing a large text file with 56,900 book titles with authors and a etext no. Trying to find the authors. By parsing the file. The file is a like ..... More

Print this item

  Extract numbers from string
Posted by: ian - Apr-28-2018, 03:42 AM - Forum: General Coding Help - Replies (1)

I need to find way to extract numbers from a string but the following not quick right. I need to get [98.15, 0.97, 1.00, 118506]

[python]
import r..... More

Print this item

  need 2x elements in list comprehension
Posted by: Skaperen - Apr-28-2018, 01:02 AM - Forum: General Coding Help - Replies (7)

i'm build a set of options for a command in a list. i have a list of directories to exclude. i have wanted to do this kind of thing many times befor..... More

Print this item

  Simple script writted by a dumb dude, myself
Posted by: mm14ag - Apr-27-2018, 11:49 PM - Forum: General Coding Help - Replies (2)

Good night, guys! I really need your help.
This is the code:

[python]
def abreArquivo():
while True:
try:
nome = raw_i..... More

Print this item

  Python Beginner Help
Posted by: Boredman - Apr-27-2018, 11:43 PM - Forum: Homework - Replies (1)

Hello! I'm currently taking a programming class for Python and Flowgorithm, but I'm having a hard time of grasping the concepts the professor is givin..... More

Print this item

  Installing pyperclip module
Posted by: Truman - Apr-27-2018, 10:22 PM - Forum: General Coding Help - Replies (5)

Hi, not sure that this is the right subforum to ask but it's also not a coding problem so will put it here.
I installed pyperclip module in my comman..... More

Print this item

  project model railroad python
Posted by: grinkle - Apr-27-2018, 09:57 PM - Forum: General Coding Help - No Replies

I would realy like some help with a project
I have asked for help in a couple of places
I think it might be better to outline the whole project

W..... More

Print this item

  Typing into CMD Prompt while its behind another window
Posted by: andy410 - Apr-27-2018, 08:24 PM - Forum: General Coding Help - No Replies

I made a Auto Hotkey script to type into a command prompt while the command prompt window was in the back and not selected. With one button it would ..... More

Print this item

  Select specific zone in .txt file
Posted by: Scientifix - Apr-27-2018, 06:30 PM - Forum: General Coding Help - Replies (8)

Hello everyone !!

I have a very large number of .txt files that all have the same structure (only numerical values are different) and are all in th..... More

Print this item

  If/Else Statement Help!
Posted by: Dizzy215 - Apr-27-2018, 06:10 PM - Forum: General Coding Help - Replies (1)

Hello
I am teaching myself python so sorry for the silly question. I wrote something very simple. If Joe calls, say "Hi Joe." If someone else calls s..... More

Print this item

  html to text problem
Posted by: Kyle - Apr-27-2018, 05:15 PM - Forum: Web Scraping & Web Development - Replies (4)

I am very new to python and this forum. I apologize for any newbie mistakes.

I am trying to convert html to text. When I do this, it is moving eve..... More

Print this item

  Python Books
Posted by: SZaretsky - Apr-27-2018, 04:59 PM - Forum: News and Discussions - Replies (3)

Just starting in the world of Python. I've taught programming for over 30 years but next year will be teaching a course focussing on Python for the fi..... More

Print this item

  How to update trainSet on each iteration
Posted by: Raj - Apr-27-2018, 03:25 PM - Forum: Data Science - Replies (6)

Hi,
I am using random forest method to predict some response variable. My train test is 70% of input data and test data is 30%. But for prediction of..... More


Attached Files

.xlsx   RandomForestInput.xlsx (Size: 9.07 KB / Downloads: 24)
Print this item

  DF is not defined
Posted by: JoshhPaynee - Apr-27-2018, 01:00 PM - Forum: Homework - Replies (1)

I wrote this code for some uni work, was all working fine then when i logged in this morning to try it again i get "DF is not defined" Can anyone see ..... More

Print this item

  Show image in qtablewidget
Posted by: lugdanum - Apr-27-2018, 11:30 AM - Forum: Web Scraping & Web Development - No Replies

Bonjour tout le monde

Je n'arrive pas à afficher des images dans la table avec ce code :

[python]
#!/usr/bin/python
# -*- coding: utf-8 -*-
..... More

Print this item

  Python to Excel date to number fix | performance issues
Posted by: Prashant - Apr-27-2018, 11:18 AM - Forum: General Coding Help - Replies (1)

I've to export the database table to Excel (xlsx) format.

I came to know that Python is very fast in file processing.

I've installed python 3.6...... More

Print this item

  SSLv3 connection with ssl librairie in Python
Posted by: madem - Apr-27-2018, 09:45 AM - Forum: Homework - Replies (3)

Hello, I want to make a programm (Python 2.7) which detect the ssl/tls version which are available on a website. And I just want to use standard Pytho..... More

Print this item

  Help in writing a basic function
Posted by: meru120 - Apr-27-2018, 08:51 AM - Forum: General Coding Help - Replies (1)

:I'm learning to write python code with a book, In the chapter about functions there is the following function example
[python]def seven_eleven():
..... More

Print this item

  wx.html2.WebView Methods
Posted by: ian - Apr-27-2018, 03:50 AM - Forum: GUI - Replies (4)

I am looking for sample codes for the following wx.html2.WebView methods to copy selection into a variable. Is there any? Thanks.

wx.html2.WebView ..... More

Print this item

  Why is it wrong? Ask for help!
Posted by: lvlinux - Apr-27-2018, 03:39 AM - Forum: General Coding Help - Replies (2)

[python]
import csv

filename='sitka_weather_07-2014.csv'#The file is not wrong
with open(filename) as file:
reader=csv.reader(file)
header_ro..... More

Print this item

  python Render template
Posted by: Akhou - Apr-26-2018, 09:57 PM - Forum: General Coding Help - Replies (2)

Hello,
I've created a template using python, but now I need to generate a .qml file from it, I wanted to work with rendered template but I coudn't go ..... More

Print this item

  GUI for speedtest-cli
Posted by: Axel_Erfurt - Apr-26-2018, 09:51 PM - Forum: Code sharing - Replies (2)

GUI for speedtest-cli

saved in list.

[img]https://dl.dropbox.com/s/lvw47ifxhku1n9z/sptest.png[..... More

Print this item

  help! if statement not working
Posted by: molliemae - Apr-26-2018, 09:50 PM - Forum: Homework - Replies (2)

so i need to write a code that will do the following
#ask for name
#ask for health score
#ask for grade
#ask for economic output
#if the grade ..... More

Print this item

  How to use list (structure) in the SQL Select command?
Posted by: pyuser1 - Apr-26-2018, 08:56 PM - Forum: General Coding Help - Replies (2)

Hello,

I have created a list of fields in the database. For example,

varlist = ['id','grade','age','fname','lname','projTitle'] 
..... More

Print this item

  Mysterious syntax errors... help?
Posted by: friendlymegalomaniac - Apr-26-2018, 08:09 PM - Forum: General Coding Help - Replies (3)

Trying to code, but keep on getting syntax errors. It says 'answer =' and 'return output
are improper. I am using python 3

[python]def exponentia..... More

Print this item

  Function changes variable value to None
Posted by: jdrp - Apr-26-2018, 08:01 PM - Forum: Game Development - Replies (4)

I'm trying to code a Tic Tac Toe game but this function
[python]def updateSymbols(keys, cursorPos, turn):
if keys[K_SPACE] and list_[cursorPos]..... More

Print this item

  string.template
Posted by: Akhou - Apr-26-2018, 07:25 PM - Forum: General Coding Help - Replies (5)

Hello,

Is it possible to generate a .qml file using string.template?

Thank u ^^

Print this item

  Read an array of structures from a c file using python
Posted by: Alisha - Apr-26-2018, 05:42 PM - Forum: General Coding Help - Replies (1)

How to identify a structure from a c file and extract the contents of the structure and store it as a string?

Print this item

  ldap3 question, using a variable in search string
Posted by: gentoobob - Apr-26-2018, 05:06 PM - Forum: General Coding Help - Replies (1)

I'm trying to figure out how to put in a variable in my search string for ldap3. I want to create a loop that goes through a list of usernames and do..... More

Print this item

  Project programming advice
Posted by: aurora10 - Apr-26-2018, 04:24 PM - Forum: General Coding Help - Replies (1)

I am a noob trying to learn Python and I have found a case I think I could use for that.

I have a bunch of Alcatel switches to which I can do SSH c..... More

Print this item

  How do you switch all alphabet into different characters?
Posted by: SteampunkMaverick12 - Apr-26-2018, 04:10 PM - Forum: General Coding Help - Replies (1)

I want to switch multiple characters into other characters e.g
m--->n
lo--->om

no never-->mo mever
hello-->helom

i.e .replace() but for multi..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  No new line from print in... 7 hours ago Lou Pedroski55 General Codin...
  Python compiler Yesterday, 09:50 NeoQuant noisefloor General Codin...
  Trading Risk management s... 11-29, 19:34 NeoQuant NeoQuant Code sharing
  Standard template Data En... 11-29, 17:51 Hosthubac Hosthubac Code Review
  Python Online Compiler 11-29, 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... 579519
  Tutorial Requ... 513055
  Web Scraping ... 442383
  Newbie with P... 386415
  New Users Int... 381812
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
elizabethlittle6258 Yesterday
StepanVoronin Yesterday
QABOB Yesterday
adityaN Yesterday
NeoQuant 11-29

User Panel Messages

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