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,954
» Latest member: bianchiluca116
» Forum threads: 38,725
» Forum posts: 175,520

Full Statistics

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

Latest Threads
pip install requests does...
Forum: General Coding Help
Last Post: DeaD_EyE
3 hours ago
» Replies: 10
» Views: 29,151
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:00 PM
» Replies: 4
» Views: 9,304
IBKR Purchasing code issu...
Forum: General Coding Help
Last Post: compuman145
Yesterday, 09:08 AM
» Replies: 0
» Views: 185
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
Yesterday, 03:29 AM
» Replies: 2
» Views: 608
Is the interpreter that c...
Forum: General Coding Help
Last Post: helendamdam
Yesterday, 02:36 AM
» Replies: 0
» Views: 209
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
Sep-22-2025, 08:56 PM
» Replies: 9
» Views: 765
403 error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 5,020
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 1,270
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,633
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 3,196

 
  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

  Buttons in table. Which row was selected to export.
Posted by: KirkmanJ - Jul-05-2018, 08:57 AM - Forum: Web Scraping & Web Development - Replies (12)

I am using a flask model with sqlalchemy.

The following python code exports a pdf.
[python]
@pdf_display_blueprint.route('/download_pdf', metho..... More

Print this item

  wordpress-python-xmlrpc. I can import 1 file. How do I import the entire folder?
Posted by: SamLearnsPython - Jul-05-2018, 06:21 AM - Forum: General Coding Help - No Replies

Im learning xmlrpc. I am able to import 1 image at a time. How do I import all images in a folder into a post?

[python]from wordpress_xmlrpc import..... More

Print this item

  Path or PurePath
Posted by: Skaperen - Jul-05-2018, 05:29 AM - Forum: General Coding Help - Replies (2)

i am writing a function that may be given a pathlib Path or PurePath object, or a string, or bytes, or bytearray. the first two are what conce..... More

Print this item

  object cannot be interpreted as an integer
Posted by: How_2 - Jul-05-2018, 04:40 AM - Forum: Data Science - Replies (1)

Hello,

I am a beginner programmer working on a Python project. - Using Python 3.6 and Windows 10
I need help interpreting this error message befor..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  pip install requests does... 3 hours ago misodca DeaD_EyE General Codin...
  Creating a Mindmap progra... Yesterday, 12:00 J_Miller Pedroski55 General Codin...
  IBKR Purchasing code issu... Yesterday, 09:08 compuman145 compuman145 General Codin...
  A coding beginner needs h... Yesterday, 03:29 Littlefish Littlefish General Codin...
  Is the interpreter that c... Yesterday, 02:36 helendamdam helendamdam General Codin...
  Using a For Loop to subtr... 09-22, 20:56 Anunderling deanhystad General Codin...
  403 error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
Most views
  The best Prog... 576794
  Tutorial Requ... 499184
  Web Scraping ... 440580
  Newbie with P... 384549
  New Users Int... 368432
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 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
bianchiluca116 Today
ShanePulse Today
Jorgecog Today
adamsmith12 Today
Ronny Today

User Panel Messages

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