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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,968
» Latest member: Seu12Jorge
» Forum threads: 38,730
» Forum posts: 175,551

Full Statistics

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

Latest Threads
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: Pedroski55
1 hour ago
» Replies: 7
» Views: 348
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Yesterday, 06:39 PM
» Replies: 7
» Views: 2,793
My goal to be hired worki...
Forum: News and Discussions
Last Post: Larz60+
Sep-27-2025, 11:58 PM
» Replies: 1
» Views: 657
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,193
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 8,753
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: Pedroski55
Sep-27-2025, 03:54 AM
» Replies: 3
» Views: 646
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,140
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 1,123
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,409
Regarding pdf for PCEP an...
Forum: News and Discussions
Last Post: Biks
Sep-26-2025, 09:50 AM
» Replies: 1
» Views: 1,969

 
  petit problème python
Posted by: salahoum - Jan-21-2019, 11:14 AM - Forum: General Coding Help - Replies (1)

programme
[python]
def extraction_donnees(texte):
fichier = open(texte)
contenu = fichier.read()
fichier.close()

lignes = con..... More

Print this item

  please help me improve this minigame
Posted by: Naito - Jan-21-2019, 10:31 AM - Forum: Code sharing - Replies (7)

Hi, i made this minigame for learning purposes it works fine, but it's too long and i guess there are much more improvements i can make , i am a total..... More

Print this item

  Number within range
Posted by: MrGoat - Jan-21-2019, 09:15 AM - Forum: General Coding Help - Replies (4)

So, this was the question description I was given :

# 6.Write a Python function to check whether a number is in a given range.

Below is my code ..... More

Print this item

  Python unittest - running multiple tests from CSV file
Posted by: asheru93 - Jan-21-2019, 08:26 AM - Forum: General Coding Help - No Replies

[python]
class TestSuites(unittest.TestCase):

def completeTest(self):
pathCSV = r'pathToCSV\testCSV.csv'

with open(pathCSV..... More

Print this item

  2 forms of this tool grep command
Posted by: Lylyhannah - Jan-21-2019, 08:21 AM - Forum: General Coding Help - No Replies

this is a command i have needed a few times today, so i decided that maybe i should create it.

it is like a grep command, which reads a main file l..... More

Print this item

  pip install pygame choking on SDL dependency
Posted by: sneakyimp - Jan-21-2019, 01:40 AM - Forum: Game Development - Replies (20)

I'm working my way through a book to learn python. Nearly done. Penultimate chapter calls for an install of pygame to develop a simple game. Turns out..... More

Print this item

  SyntaxError - Integral
Posted by: michitrujillo - Jan-20-2019, 10:06 PM - Forum: General Coding Help - Replies (1)

Hello,
I am trying to solve an integral with the below code but I keep getting a Syntax error for my second def F; I would


[python]def f(x):
..... More

Print this item

  problem in replace string into file
Posted by: Saeid_Bibak - Jan-20-2019, 08:24 PM - Forum: General Coding Help - Replies (1)

hi
i have a template model,
and i want to open a file in python and replace any line of this file to one of template Models string that s name is "..... More

Print this item

  list
Posted by: josesalazmit - Jan-20-2019, 07:13 PM - Forum: Homework - Replies (3)

Hello (Please, follow my code below)
This is a portion of a code which use list and function and I took part of the code to best understand the conce..... More

Print this item

  How to insert JSON into MSSQL
Posted by: raysefo - Jan-20-2019, 06:41 PM - Forum: General Coding Help - Replies (2)

Hello guys,

I implemented a flask REST api. I want to insert JSON data into MSSQL 2016. I wonder if I can use OPENJSON in my python.I installed pyo..... More

Print this item

  NameError: name 'Paddle' is not defined
Posted by: meza1123 - Jan-20-2019, 06:37 PM - Forum: General Coding Help - Replies (2)

I keep getting this error message.

Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 17:26:49) [MSC v.1900 32 bit (Intel)] on win32
Type "copyright", "credi..... More

Print this item

  Python related simple shell scripting issue
Posted by: Larz60+ - Jan-20-2019, 06:09 PM - Forum: Web Scraping & Web Development - Replies (4)

I have a whole bunch of old projects that were created without virtual environment.
many of them use the same packages, so I thought I'd create a bas..... More

Print this item

  Selenium click on popup button???
Posted by: GuJu - Jan-20-2019, 05:02 PM - Forum: Web Scraping & Web Development - Replies (7)

Hi everyone!
I have been searching for this problem for a week but i couldnt find anything about it.
The problem is this. After i entered the instagr..... More

Print this item

  Showing text in QTableView
Posted by: sequence - Jan-20-2019, 05:00 PM - Forum: GUI - No Replies

I want to implement a simple view to which my program would then export data from a text file to show, which should look like this:

..... More

Print this item

  Weird scoping error
Posted by: Stef - Jan-20-2019, 04:00 PM - Forum: General Coding Help - Replies (3)

I bumped into this weird scoping error and I have no clue what's going on.

[python]
#module main

FIXED = 0 # banks spend a fixed ..... More

Print this item

  getting started
Posted by: b4iknew - Jan-20-2019, 02:27 PM - Forum: Web Scraping & Web Development - Replies (3)

Hello and good morning all.
I want to make it clear, I am not a programmer by any streach of the imagination. I just started trying to learn py..... More

Print this item

  Assertion Error
Posted by: Mateoo - Jan-20-2019, 02:20 PM - Forum: General Coding Help - Replies (2)

Hello everyone,
I've got problem with assertion. It seems that it should work, but after running the program I receive AssertionError. Do you have a..... More

Print this item

  Attribute error print statement error
Posted by: jamshaid1997 - Jan-20-2019, 02:11 PM - Forum: General Coding Help - Replies (1)

[python]
#Imported modules used within the program
import pytsk3
import struct
import pyewf
import datetime
import hashlib
from Registry impor..... More

Print this item

  Sum of Numbers in a List
Posted by: MrGoat - Jan-20-2019, 01:12 PM - Forum: General Coding Help - Replies (8)

So this was the question description :
# Write a Python function to sum all the numbers in a list.
# Sample List : (8, 2, 3, 0, 7)
# Expected Out..... More

Print this item

  Get lyrics from songs playing in spotify - Need help making it better
Posted by: thorep - Jan-20-2019, 01:09 PM - Forum: Code sharing - Replies (1)

Check out this simple project. Im just starting out in python. Anything I can do better?
Maybe use flask to make it a webpage.
Or some code that lis..... More

Print this item

  Loops
Posted by: Programming_Noob - Jan-20-2019, 12:40 PM - Forum: General Coding Help - Replies (1)

[python]#Game
#Import module
import random

#Start randomgenerator
random.seed()

#Random values and calculation
a= random.randint(1,10)
b= r..... More

Print this item

  can anybody explain what such function doing
Posted by: cdbs - Jan-20-2019, 12:39 PM - Forum: Data Science - Replies (1)

Hello,
im trying to understand some piece of code written by guy with 10+ experience of coding,
he won Data science competition and put his code here:..... More

Print this item

  increment variable in while loop
Posted by: Naito - Jan-20-2019, 12:20 PM - Forum: General Coding Help - Replies (3)

hello, i have a question please, why the while loop dosen't store the updated integer?
[output]guess the number: 4
better luck next time
the random nu..... More

Print this item

  Max of 3 numbers
Posted by: MrGoat - Jan-20-2019, 12:09 PM - Forum: General Coding Help - Replies (2)

Hi, so I am supposed to write a function to find the maximum of 3 numbers. Initially I wanted to write a function that takes in 3 values and analyzes ..... More

Print this item

  TypeError: __init__() missing 3 required positional arguments
Posted by: Pythonhelp82 - Jan-20-2019, 11:29 AM - Forum: Homework - Replies (6)

Hi Guys,

I am studying a mark scheme answer from a previous exam question and when following the mark scheme on Python , I am presented with an error..... More

Print this item

  Does anyone know how to scrape/find this data?
Posted by: randomguy - Jan-20-2019, 11:21 AM - Forum: General Coding Help - Replies (8)

No one seems to know how to do this. Maybe it's not possible.

I need to find out how quickly particular expired domains get registered after their ..... More

Print this item

  extracting data from a list in a file
Posted by: clarablanes - Jan-20-2019, 11:18 AM - Forum: General Coding Help - Replies (2)

good morning guys,

I am trying to extract the descriptor in bold in a list (the list is in a file):

This is the content of the file: training_se..... More

Print this item

  Help to understand output
Posted by: Pippi - Jan-20-2019, 08:59 AM - Forum: Homework - Replies (1)

Hi, I have loaded a lot of files under one variable. The output looks like this:

[python]
[Seq('KATIPSESP', ProteinAlphabet()), Seq('PSESPFAAA', Prot..... More

Print this item

  Index out of range error
Posted by: shikhajain07 - Jan-20-2019, 06:46 AM - Forum: General Coding Help - Replies (2)

Hi Everyone,
I am trying to create a sublist which uses a while loop to return a sublist of the input list. The sublist should contain the same value..... More

Print this item

  List of dictionaries
Posted by: bob_for_practice - Jan-20-2019, 06:22 AM - Forum: General Coding Help - Replies (2)

I've a:
input_list = [{'1':'a'},{'2':'b'},{'3':'c'},{'1':'d'},{'2':'e'},{'4':'f'},{'1':'g'},{'3':'h'}]

I need:
output_list = [{'1':..... More

Print this item

  KeyError when merging
Posted by: kbrummert - Jan-20-2019, 03:14 AM - Forum: General Coding Help - Replies (2)

I get a KeyError when merging two data frames, even though I have confirmed that both have dt as a name and both are of the same data type.

[python..... More

Print this item

  permuting a list of lists
Posted by: Skaperen - Jan-20-2019, 02:28 AM - Forum: General Coding Help - Replies (2)

suppose i have a list of lists, where each inner list begins with its name followed by a sequence of numbers. i want to have nested loops that go tho..... More

Print this item

  spyder - won't show results in console
Posted by: kbrummert - Jan-20-2019, 01:11 AM - Forum: General Coding Help - No Replies

In Spyder, when I click run file, all it does is output the runfile command. It doesn't show results on the console, but when I run selection, it does..... More

Print this item

  Brute force password breaker
Posted by: Truman - Jan-20-2019, 01:09 AM - Forum: Homework - Replies (7)

[i]create a list of word strings by reading this file. Then loop over each word in this list, passing it to the decrypt() method. If this method retur..... More

Print this item

  Executable not working (Anaconda, Win7 32 bit)
Posted by: Archangelos - Jan-20-2019, 12:47 AM - Forum: Web Scraping & Web Development - Replies (4)

I wrote a piece of code in Python using Anaconda 32 bit.
The code gets the log page from the web server of 17 satellite receivers.


The code in j..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Comparing 2 100GB Drives/... 1 hour ago tester_V Pedroski55 General Codin...
  Select Python comment (#)... Yesterday, 18:39 SpongeB0B tester_V General Codin...
  My goal to be hired worki... 09-27, 23:58 GnomeSweetGnome Larz60+ News and Disc...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
  My First App 09-27, 10:53 BCopeland64 carlbidwell Code Review
  Unable to resolve FileNot... 09-27, 03:54 llarkin6 Pedroski55 General Codin...
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
  pdf file processing: how ... 09-26, 13:14 Pavel_47 noisefloor General Codin...
  Regarding pdf for PCEP an... 09-26, 09:50 P212 Biks News and Disc...
  Using Python to SSH and R... 09-26, 03:53 justaguy SprunkiRetake Networking
Most views
  The best Prog... 577284
  Tutorial Requ... 500416
  Web Scraping ... 440963
  Newbie with P... 384991
  New Users Int... 369380
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12089
buran 8176
snippsat 7369
deanhystad 6896
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Seu12Jorge Yesterday
seomelbourneaustralia Yesterday
Jacobjoift Yesterday
zalexstolzeoz5360 Yesterday
Edzed4431 09-27

User Panel Messages

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