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,923

Full Statistics

Online Users
There are currently 32 online users.
» 1 Member(s) | 27 Guest(s)
Bing, Google, AOL, Mojeek

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

 
  TurtleWorld on MAC in Python 3.6 issues
Posted by: benniehanas - Jul-06-2018, 05:33 PM - Forum: General Coding Help - Replies (3)

I have an issue getting TurtleWorld to work for my book "ThinkPython" for version 3.6. I cannot get it to work in pycharm or on my terminal CLI. These..... More

Print this item

  Traceback errors - too many
Posted by: tjnichols - Jul-06-2018, 05:29 PM - Forum: Web Scraping & Web Development - No Replies

Ok - I used to have a version of this that worked. It's been a while since I've used this (frustration, other project, vacation) but mostly frustratio..... More

Print this item

  Merge two simple scripts
Posted by: Kimzer - Jul-06-2018, 04:12 PM - Forum: General Coding Help - Replies (1)

This is so out of my league so i really need some help.
I want to merge theese two scripts.
There is a button function in the first script, wich i ..... More

Print this item

  Troubles with drop-down automation
Posted by: knowledge1st - Jul-06-2018, 03:53 PM - Forum: Web Scraping & Web Development - No Replies

I'm having some troubles with clicking a item in a drop-down menu/list..

I'm using Selenium Web Driver, Chrome specifically, and i have the next "b..... More

Print this item

  if <expr> as <name> syntax interest
Posted by: Lucid - Jul-06-2018, 03:32 PM - Forum: News and Discussions - Replies (2)

A useful addition to the python base is an if statement that can capture the expression's result in a variable if it's truthy:
[python]
if re.match(..... More

Print this item

  Realized variance and daily probability distribution
Posted by: petergarylee - Jul-06-2018, 02:19 PM - Forum: General Coding Help - Replies (1)

I would like to compute daily realized variance given 5 minutes price/level and return, and daily probability distribution on the return data ignored ..... More

Print this item

  python wont recognize indentation
Posted by: JWhykes - Jul-06-2018, 10:40 AM - Forum: General Coding Help - Replies (6)

Hi,

My problem is as follows:

In the python 3.6 program, I have my code. Every thing works fine right up until line 94 (here its on line 28) whe..... More

Print this item

  Draw isosceles triangle
Posted by: fen1c5 - Jul-06-2018, 10:34 AM - Forum: Homework - Replies (4)

Hi all boys.

So, I have difficulty creating a program that designs an isosceles and scaeno triangle. These are just exercises that I like to perfor..... More

Print this item

  Find Value in Array
Posted by: rizals - Jul-06-2018, 09:12 AM - Forum: General Coding Help - Replies (2)

Hallo All

I find some value in array but i have not result, what's wrong with my code

[python]VV = np.arange(min(dV),max(dV),.1)
for i in range..... More

Print this item

  py 2.7 restarting the program
Posted by: Jonathan_levy - Jul-06-2018, 07:26 AM - Forum: General Coding Help - Replies (1)

[python]
from random import randint
def roll_the_dice():
dice = randint(1, 6)
dice2 = randint(1, 6)
print dice , dice2
x = raw_i..... More

Print this item

  Stopwatch in Python/IPython shell
Posted by: suvadip - Jul-06-2018, 06:24 AM - Forum: General Coding Help - Replies (3)

Hi everyone,

I am very new to this community. What I am trying to do is to show a dynamic stopwatch in Python/IPython shell (not in a separate wind..... More

Print this item

  os.path.join, bytearray, python2 vs python3
Posted by: Skaperen - Jul-06-2018, 01:19 AM - Forum: News and Discussions - No Replies

in python2 you can os.path.join() bytearray names and get a bytearray joined path, but not in python3. so if 2to3 encountered this being done, how wo..... More

Print this item

  Python Code Improvement (15 y.o kid)
Posted by: ZenWoR - Jul-06-2018, 01:06 AM - Forum: Web Scraping & Web Development - Replies (6)

down vote
favorite
I was wondering about for some time should I show my (should I say) first Python project that has a little bit of usage, not that..... More

Print this item

  function 'return' and file content into a list
Posted by: shiro26 - Jul-06-2018, 12:58 AM - Forum: General Coding Help - Replies (4)

Hi
I have again an issue with an error and it seems that it is due to my difficulties to understanding how to properly use the "return" when defining..... More

Print this item

  pip install --upgrade google-api-python-client errors
Posted by: ineuw - Jul-06-2018, 12:00 AM - Forum: General Coding Help - No Replies

I was using overgrive 3.2.3, a Google Drive client (built with Python 2.7) in Linux 18.3 64bit, but the software died on me completely.

The develo..... More

Print this item

  code problems
Posted by: lokchi2017 - Jul-05-2018, 11:47 PM - Forum: General Coding Help - Replies (3)

is there any problems in this code, because it says invalid syntax
[python]question1 = input("Question!")
answer1 = input("Answer of question1")..... More

Print this item

  google
Posted by: lokchi2017 - Jul-05-2018, 11:35 PM - Forum: General Coding Help - Replies (1)

is there anyway to connect python to google? like so i can search google through python

Print this item

  Menu Problem.
Posted by: Jim99 - Jul-05-2018, 11:10 PM - Forum: Homework - Replies (13)

Hello guys, the idea of my project is self-explanatory by the menu. It is a menu for a hotel booking system. I am stuck on what to do next? How do I m..... More

Print this item

  Python code help
Posted by: PraiseYAH - Jul-05-2018, 09:12 PM - Forum: Homework - Replies (2)

So here's the assignment:

Write a program that provides proper output given the following constraints:
• If the person’s age is between 6 and 18 t..... More

Print this item

  [Python] Learn words' sentiment based on labels
Posted by: Artificious - Jul-05-2018, 08:48 PM - Forum: General Coding Help - Replies (1)

I have a large database with the following setup for feature and label:

[quote]list_of_list = [[[[col..... More

Print this item

  using two arrays to fit a third one - find coefficients
Posted by: vaugirard - Jul-05-2018, 08:35 PM - Forum: Data Science - Replies (1)

Hi everyone,

I am new to python and coding so I am asking for your help.

Let's say I have two arrays (x1 = 0... 100, y1 = 0.1.... 0.2 and same f..... More

Print this item

  BaseHTTPServer.HTTPServer pick-a-port?
Posted by: degenaro - Jul-05-2018, 06:04 PM - Forum: General Coding Help - Replies (1)

My code works beautifully and looks like this:
[python]server_class = BaseHTTPServer.HTTPServer
httpd = server_class((HOST_NAME, PORT), WebRequestHa..... More

Print this item

  Criticism on one of my first completed programs in Python
Posted by: Zombie_Programming - Jul-05-2018, 04:48 PM - Forum: Code sharing - Replies (5)

This program is supposed to mimic, in a way, a banking program. Essentially it allows the user to login using a 12-digit pre-generated account number ..... More

Print this item

  command prompt execution
Posted by: saisankalpj - Jul-05-2018, 03:23 PM - Forum: General Coding Help - Replies (5)

My program of python gets executed from pycharm.But the same doesnt happen when i do in command prompt as i get the error like"cannot import Method", ..... More

Print this item

  logger
Posted by: saisankalpj - Jul-05-2018, 03:19 PM - Forum: General Coding Help - No Replies

i have a method
def set_logger():
handler = logging.FileHandler(logpath)
handler.setFormatter(formatter)
logger.addHandler(handler)
r..... More

Print this item

  Best Practice for making an .exe for PyQT5 w/ Anaconda?
Posted by: krypterro - Jul-05-2018, 03:18 PM - Forum: GUI - No Replies

I have tried Py2Exe, cxFreeze, and pyInstaller. No luck. So far I haven't managed to successfully compile any PyQT5 application into a Windows Executa..... More

Print this item

  How to write a Discord bot in Python
Posted by: JunShimotsu - Jul-05-2018, 02:52 PM - Forum: Tutorial Requests and Submissions - No Replies

In this tutorial, you'll learn to create a simple Discord bot with Python.
In case you don't know what Discord is,..... More

Print this item

  PYSPC
Posted by: ksasi2k3 - Jul-05-2018, 02:01 PM - Forum: General Coding Help - Replies (2)

Hi,

I am trying to create control chart (P chart) using Pyspc module. I am able to create it for a sample data but when connected with DB I facing ..... More

Print this item

  Conditional sorting in Python
Posted by: amirt - Jul-05-2018, 01:09 PM - Forum: General Coding Help - Replies (1)

In Python how can i sort a two item list based on the condition: if first items are not equal do a normal sort (based on the values of first items), a..... More

Print this item

  Reading data from Serial
Posted by: elgabry - Jul-05-2018, 11:36 AM - Forum: Data Science - Replies (1)

I'm trying to read data from serial port and save it to file but when doing so I lose 10 minutes od data every 1 hour any ideas?

Code:
[python]#!/..... More

Print this item

  'module' object is not subscriptable error
Posted by: Pengwain - Jul-05-2018, 10:39 AM - Forum: General Coding Help - Replies (3)

I am trying to read data from a file called census2010.py containing data in the following format(snippet of the full data):

[python]allData = {'A..... More

Print this item

  count unique values of a list with a list
Posted by: 3Pinter - Jul-05-2018, 09:41 AM - Forum: General Coding Help - Replies (2)

so I'm fiddling with lists ... (and yup, new in python)

mylist = ["a", "b", "c"]
where "a,b,c" are lists with some values too ... like
"a" > {"l..... More

Print this item

  invalid syntax
Posted by: lokchi2017 - Jul-05-2018, 09:36 AM - Forum: General Coding Help - Replies (1)

this code should be okay, but when i run it it says "invalid syntax."
Code:
[python]youtuber = input("Name a YouTuber!")
subs = input("How many sub..... More

Print this item

  interp2d casting ruled not 'safe'
Posted by: sebseb - Jul-05-2018, 09:21 AM - Forum: Data Science - No Replies

Trying to use interp2d in the following context :

[python]Traceback (most recent call last):
File "<console>", line 1, in <module>
File "..... More

Print this item

  How to read this properly?
Posted by: Mole_Cartographer - Jul-05-2018, 08:59 AM - Forum: General Coding Help - Replies (1)

I have a reallly huge file like
TXT FILE:
[output]{"PseudorangeRateUncertaintyMetersPerSecond": 0.1289496429081, "DriftUncertaintyNanosPerSecond": "..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  No new line from print in... 6 hours ago Lou noisefloor General Codin...
  Python compiler 6 hours ago NeoQuant noisefloor General Codin...
  Trading Risk management s... Yesterday, 19:34 NeoQuant NeoQuant Code sharing
  Standard template Data En... Yesterday, 17:51 Hosthubac Hosthubac Code Review
  Python Online Compiler Yesterday, 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... 579512
  Tutorial Requ... 512955
  Web Scraping ... 442375
  Newbie with P... 386401
  New Users Int... 381781
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 Today
StepanVoronin Today
QABOB Today
adityaN Today
NeoQuant Yesterday

User Panel Messages

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