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,960
» Latest member: llarkin6
» Forum threads: 38,729
» Forum posts: 175,537

Full Statistics

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

Latest Threads
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: deanhystad
3 hours ago
» Replies: 2
» Views: 70
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
3 hours ago
» Replies: 4
» Views: 527
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
7 hours ago
» Replies: 1
» Views: 642
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
7 hours ago
» Replies: 6
» Views: 4,863
Regarding pdf for PCEP an...
Forum: News and Discussions
Last Post: Biks
11 hours ago
» Replies: 1
» Views: 1,536
Using Python to SSH and R...
Forum: Networking
Last Post: SprunkiRetake
Today, 03:53 AM
» Replies: 1
» Views: 2,588
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Today, 12:32 AM
» Replies: 0
» Views: 237
extracting data from a us...
Forum: General Coding Help
Last Post: DeaD_EyE
Yesterday, 01:49 PM
» Replies: 2
» Views: 435
pip install requests does...
Forum: General Coding Help
Last Post: DeaD_EyE
Sep-24-2025, 02:48 PM
» Replies: 10
» Views: 29,835
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: Pedroski55
Sep-23-2025, 12:00 PM
» Replies: 4
» Views: 9,662

 
  poosible bug
Posted by: uguryavuz - Sep-28-2018, 08:35 AM - Forum: General Coding Help - Replies (3)

Hi,

a="1.1"
b="2.2"
print(float(a)+float(b))

on Python 3.6, this code returns 3.3000000000000003.
Is it a bag or I made a mistake?

Print this item

  Searching through a list of dictionaries with a condition.
Posted by: Mr_Keystrokes - Sep-28-2018, 08:06 AM - Forum: General Coding Help - Replies (11)

Hey guys,

I have a huge spreadsheet that I am attempting to search through for some specific data.

On the one hand I have IDs like this:

Y009..... More

Print this item

  my debug toys
Posted by: Skaperen - Sep-28-2018, 06:30 AM - Forum: Code sharing - No Replies

my debug toys: you can also download from http://ipal.net/free/debugtoys.py

[python]#=======#=======#=======#=======#=======#=======#=======#=====..... More

Print this item

  Conflict? Why?
Posted by: bkpsusmitaa - Sep-28-2018, 05:01 AM - Forum: General Coding Help - Replies (2)

I have, in the same directory, created a file SecretPasswordFile.txt with a word placed inside as the password key.

Next, I created this file:
[py..... More

Print this item

  passing a value to imported code
Posted by: Skaperen - Sep-28-2018, 03:59 AM - Forum: General Coding Help - No Replies

i would like to pass a value to imported code in order for it to make a decision at import time (such as which way to define a function). the first w..... More

Print this item

  Code isnt working
Posted by: abdullahali - Sep-28-2018, 02:25 AM - Forum: Homework - Replies (5)

Write the definition of a function powerTo which recieves two parameters, a double and an integer. If the second parameter is positive, the function r..... More

Print this item

  Solving a pattern. Stuck...
Posted by: lzalez - Sep-28-2018, 01:54 AM - Forum: General Coding Help - Replies (2)

Hi all,

I am currently trying to create geometries from a list of point (0-9) and need to organize the points.
The points look like this:

..... More

Print this item

  Make a screen appear without using import
Posted by: ctrembla - Sep-28-2018, 12:24 AM - Forum: Game Development - Replies (10)

I am trying to learn python & everytime I see a tutorial they import a library to make a screen appear. in java & javascript I can make the screen app..... More

Print this item

  [SOLVED on SO] Downsizing non-representative data in DataFrame
Posted by: volcano63 - Sep-27-2018, 09:46 PM - Forum: Data Science - Replies (1)

Hi, folks,
I occasionally dabble in pandas - but I cannot claim deep knowledge. Today I had to filter out some rows from a [icode]Data..... More

Print this item

  a feature i would like to see
Posted by: Skaperen - Sep-27-2018, 08:39 PM - Forum: News and Discussions - Replies (10)

a feature i would like to see added to Python in some future version is the ability to add methods to a builtin class and have it be automatically ava..... More

Print this item

  i am moving on to just python3
Posted by: Skaperen - Sep-27-2018, 08:12 PM - Forum: News and Discussions - Replies (3)

the reason i have decided to go ahead and abandon Python2 before its EOL and move on to just Python3 is because Python2 does not support using * for a..... More

Print this item

  how to add a coma in print statement of python without preceding space character?
Posted by: brittocj - Sep-27-2018, 08:05 PM - Forum: General Coding Help - Replies (3)

I am new to python and learning,in print statement a space character is injected in before the comma, which is undesirable. How may we print the comma..... More

Print this item

  using regex wildcard Beautiful Soup
Posted by: Larz60+ - Sep-27-2018, 07:27 PM - Forum: Web Scraping & Web Development - Replies (6)

I'm trying to match a div tag that may look like:

Output:
<div id="" name="">
or it may look like
[output]<a name="diddlysquat"></a>[/out..... More

Print this item

  What might be the cause of this?
Posted by: FIVE9 - Sep-27-2018, 05:30 PM - Forum: General Coding Help - Replies (2)

Here is my python code

Name = input("Tell me your name: ")
print("Hello ", Name)
But when i run the program i get this error..... More

Print this item

  Pythonista script with iPhone's native Clock app
Posted by: Sharkman157 - Sep-27-2018, 05:23 PM - Forum: General Coding Help - No Replies

I am using the New Shortcut app with ios12. I want a Shortcut that starts a timer, but the native Clock app appears to be very limited in its exposur..... More

Print this item

  Data Analysis
Posted by: darkapostle - Sep-27-2018, 04:42 PM - Forum: Homework - Replies (1)

Hello, I am taking a data analysis class and this is my first time using python. I have done the first 3 problems of my homework assignment but am str..... More

Print this item

  Customised Learning
Posted by: bkpsusmitaa - Sep-27-2018, 02:04 PM - Forum: General Coding Help - Replies (4)

Found a code in 2008:
The program doesn't run in my system. Some of the lines I have silenced using hash.
Added a #! in the beginning.
Referred to ..... More

Print this item

  Create a scrollbar in GUI to add test cases
Posted by: mamta_parida - Sep-27-2018, 11:43 AM - Forum: GUI - Replies (1)

Hello

Actually i created a GUI to test some of the devices now the frame geometry i fixed to (1176x768) in same all the test cases want to accommodat..... More

Print this item

  dictionaries
Posted by: brecht83 - Sep-27-2018, 10:37 AM - Forum: General Coding Help - Replies (2)

Hello everybody,

I read data from an MySQL server and it gives me the info as a list dictionaries:

[python]
db_ewon = con.cursor(dictionary=Tr..... More

Print this item

  Small help for the python array save
Posted by: juniorcoder - Sep-27-2018, 09:07 AM - Forum: General Coding Help - Replies (1)

Hello Folks ,
I need a small help . Here is my code:
[python]
from random import randint
X=[[8, 8, 8, 8, 6], [29, 27, 27, 27, 27], [9, 9, 9, 9, 10]]
..... More

Print this item

  Serial communication
Posted by: Isabelle94 - Sep-27-2018, 08:37 AM - Forum: Networking - Replies (3)

Hi all, I need some help here.

The error I got is "device reports readiness to read but return no data. (Device disconnected or multiple access on ..... More

Print this item

  [split] invalid syntax
Posted by: MasterScythe - Sep-27-2018, 06:06 AM - Forum: General Coding Help - Replies (3)

Okay so I have been following a YouTube video on writing out this code and I am getting this error when I test run the program:

[File "C:/Users/Vla..... More

Print this item

  Python Tutorial range function question
Posted by: HawkeyeKnight - Sep-27-2018, 05:19 AM - Forum: Homework - Replies (2)

I am working though the Python Tutorial. In the section after the section on the range function, which covers using "break", there is the following co..... More

Print this item

  Issue in reading a text file contains dict data
Posted by: bharathappriyan - Sep-27-2018, 01:56 AM - Forum: General Coding Help - Replies (4)

Hi,
I am new to python. I have a text file contains data in below format.
{"ts": "2018-09-10 10:20:11.312151","action":0,"type":0,"Query":"SELECT CO..... More

Print this item

  What is wrong with this code
Posted by: DrChicken24 - Sep-27-2018, 01:28 AM - Forum: General Coding Help - Replies (4)

I need help with this calculator code

[PYTHON]
print("Basic Python Calculator\n")
print("Created With the Sololearn Python Course\n")

while Tr..... More

Print this item

Star Pandas referring to result of a previous row
Posted by: slavok400 - Sep-27-2018, 01:25 AM - Forum: Data Science - Replies (1)

Hi people,

Would really appreciate if you help me with something.
You know in Excel when you apply a formula on a cell and then drag it down so every..... More

Print this item

  size of an int
Posted by: Skaperen - Sep-27-2018, 12:46 AM - Forum: General Coding Help - Replies (4)

i have a big int. i want to know how many bytes is needed to store it. that is,what is the minimum value i need to give in argument 1 of its .to_byt..... More

Print this item

  Tensorflow issues
Posted by: JarethGawain - Sep-27-2018, 12:34 AM - Forum: Data Science - Replies (1)

Hello, I've been looking around, I've found solutions but none work for me.

" I keep getting ImportError: DLL load failed: The specified procedure co..... More

Print this item

  urlib - to use or not to use ( for web scraping )?
Posted by: Truman - Sep-26-2018, 11:48 PM - Forum: Web Scraping & Web Development - Replies (45)

Al Sweigart in Automate the boring stuff with Python strongly suggests to avoid urlib2. I'm asking this because I came to possession of a book called ..... More

Print this item

  Play Audio File w/ Python
Posted by: ducky_12 - Sep-26-2018, 11:33 PM - Forum: General Coding Help - Replies (8)

Hello!
I'm very new to using Python. I'm attempting to create code that will play an audio file based off an input.
I'm working on getting a robot t..... More

Print this item

  Help with file handling
Posted by: gonzo620 - Sep-26-2018, 11:33 PM - Forum: General Coding Help - Replies (10)

for an assignment I have to Write a program that tells the user what the coordinates are for a given city. The issue is that Python will not read this..... More

Print this item

  pylint complains that it can't find import
Posted by: Larz60+ - Sep-26-2018, 10:46 PM - Forum: News and Discussions - No Replies

I have a script that I just finished. It's a long one, and I have one annoying pylint error message:
"message": "E0401:Unable to import 'ScraperPaths..... More

Print this item

  merge 3 sql data sets to 1 librairy
Posted by: brecht83 - Sep-26-2018, 10:13 PM - Forum: General Coding Help - No Replies

Hi,

I'm new to Python and I have a problem with list, librairies,...
I have 3 MySQL datasets that I want to merge to 1 librairy. I've tried everyt..... More

Print this item

  Annoyance - Newer version of pygame
Posted by: nilamo - Sep-26-2018, 09:40 PM - Forum: Game Development - Replies (22)

You know what really grinds my gears?[python]>>> import pygame
pygame 1.9.4
Hello from the pygame community. https://www.pygame.org/contribute.html..... More

Print this item

  problem with for loops?
Posted by: Darbandiman123 - Sep-26-2018, 06:33 PM - Forum: General Coding Help - Replies (1)

This is the code:
[python]
import turtle
Win = turtle.Screen()
t = turtle.Turtle()

def shape(length, sides):
for i in (1,sides):
..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Unable to resolve FileNot... 3 hours ago llarkin6 deanhystad General Codin...
  [Tkinter] how to export a... 3 hours ago RonR noisefloor GUI
  Is the interpreter that c... 7 hours ago helendamdam noisefloor General Codin...
  pdf file processing: how ... 7 hours ago Pavel_47 noisefloor General Codin...
  Regarding pdf for PCEP an... 11 hours ago P212 Biks News and Disc...
  Using Python to SSH and R... Today, 03:53 justaguy SprunkiRetake Networking
  My goal to be hired worki... Today, 00:32 GnomeSweetGnome GnomeSweetGnome News and Disc...
  extracting data from a us... Yesterday, 13:49 Perry DeaD_EyE General Codin...
  pip install requests does... 09-24, 14:48 misodca DeaD_EyE General Codin...
  Creating a Mindmap progra... 09-23, 12:00 J_Miller Pedroski55 General Codin...
  IBKR Purchasing code issu... 09-23, 09:08 compuman145 compuman145 General Codin...
Most views
  The best Prog... 577002
  Tutorial Requ... 499745
  Web Scraping ... 440755
  Newbie with P... 384741
  New Users Int... 368823
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+ 12088
buran 8176
snippsat 7367
deanhystad 6896
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
llarkin6 Today
Xuitar Today
SprunkiRetake Today
GnomeSweetGnome Yesterday
alxpetrovo2272 Yesterday

User Panel Messages

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