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,309
» Latest member: adityaN
» Forum threads: 38,801
» Forum posts: 175,920

Full Statistics

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

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

 
  Getting Error : User Input
Posted by: aankrose - Sep-06-2018, 04:36 PM - Forum: General Coding Help - Replies (1)

I am not able to identify what will be the error could be, please help

[python]print "How old are you?",
age = raw_input()
print "How tall are yo..... More

Print this item

  How many variables/values are limited to single assignment operator?
Posted by: Prabakaran141 - Sep-06-2018, 02:42 PM - Forum: General Coding Help - Replies (1)

How many variables/values are limited to single assignment operator?

Example:

1) a = 10
2) a,b = 10,20
Similar to above e..... More

Print this item

  A quick question
Posted by: teczone - Sep-06-2018, 01:43 PM - Forum: General Coding Help - Replies (4)

Hello, I would like to know how to make a loop that allows you to repeat yourself only when the player has input an answer:
[python]
import random
..... More

Print this item

  Python script runs on startup but does not register keystrokes.
Posted by: mericanpi - Sep-06-2018, 01:30 PM - Forum: General Coding Help - Replies (3)

I am using a raspberry pi zero to control a servo, using a wireless keyboard for a remote. I have an Adafruit 16 channel servo control, using Raspbian..... More

Print this item

  Possible to run Python scripts from oracle?
Posted by: dglass - Sep-06-2018, 11:34 AM - Forum: General Coding Help - Replies (8)

So I'm using oracle's dbms_scheduler, which is able to execute cmd.exe to run command line scripts (.bat, .cmd), but I can't seem to do the same for ...... More

Print this item

  format strings syntax error
Posted by: VikramSuh - Sep-06-2018, 11:03 AM - Forum: General Coding Help - Replies (2)

I'm a noob doing an introductory lesson on format strings. The example given in the lesson keeps giving an error, even when I directly copy/paste. Her..... More

Print this item

  makin hardlinks with pathlib.Path
Posted by: Skaperen - Sep-06-2018, 06:42 AM - Forum: General Coding Help - Replies (2)

i see that pathlib.Path.symlink_to exists and is documented. so, i can create a symlink. but i see no means to do a hardlink. ..... More

Print this item

  Avoid hard-coded folderPath in the code (let users provide it)
Posted by: SunOffice024 - Sep-06-2018, 04:54 AM - Forum: General Coding Help - Replies (6)

I am using Python 3.7, and would like to know if is there method/function to ask the user to provide a folderPath (then print or work further)?

Ple..... More

Print this item

  Unable to send text via sendkeys
Posted by: SamLearnsPython - Sep-06-2018, 04:13 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi. This is a script to add image and text to wordpress. The adding images part works alright but I am unable to send the text via document.send_keys(..... More

Print this item

  was Python your 1st or 2nd language?
Posted by: Skaperen - Sep-06-2018, 03:06 AM - Forum: Bar - Replies (11)

what ordinal language number was Python for you? it was probably around 20th or 30th for me, i would only want to count languages i have written usab..... More

Print this item

  strange python3 issue
Posted by: tony1812 - Sep-06-2018, 12:07 AM - Forum: General Coding Help - Replies (1)

Hello, I am learning tkinter, in the process, I run into a strange problem. I have two python3 simple scripts, one is named window_class.py the other ..... More

Print this item

  regex octal replace
Posted by: chaz_sliger - Sep-06-2018, 12:05 AM - Forum: General Coding Help - Replies (1)

Octal Dump Of Text Read From File. (od -cbx filename)

[font=Courier New, Courier, monospace]. . . ..... More

Print this item

  Basic Syntax/HTML Scrape Questions
Posted by: sungar78 - Sep-05-2018, 11:58 PM - Forum: Web Scraping & Web Development - Replies (5)

Hello,

I imagine this has been answered somewhere else; however I've searched and watched numerous tutorials and still haven't found an answer, so..... More

Print this item

  Importing created module for web scraping with bs4
Posted by: Truman - Sep-05-2018, 11:49 PM - Forum: Web Scraping & Web Development - Replies (5)

module that I made:
[python]<!DOCTYPE html>
<html><head><title>The Dormouse's story</title></head>
<body>
<p class="title"><b>The Dormouse's story..... More

Print this item

  Curiosity about lower levels in programming
Posted by: glidecode - Sep-05-2018, 10:36 PM - Forum: News and Discussions - Replies (10)

Hi everyone

Ever since I started learning and doing some programming I have had an extreme curiosity about the lower levels of programming. While p..... More

Print this item

  Rounding without using Python embedded functions
Posted by: NewCoder - Sep-05-2018, 09:55 PM - Forum: Homework - Replies (3)

Good day,

So I am working on an assignment that calculates the position and velocity of an object at any given time. I get float(input) from the us..... More

Print this item

  The graphic/simulator is not loading in OOP version
Posted by: Caturix99 - Sep-05-2018, 06:07 PM - Forum: General Coding Help - Replies (5)

I transformed my existing code to an OOP version. Now I have the problem that the plantes of my solar system are not loaded anymore. Nothing is loaded..... More

Print this item

  Python, sending E-mails
Posted by: Daxanius - Sep-05-2018, 03:05 PM - Forum: General Coding Help - Replies (1)

So im trying to make a fun little application thingy, wich sends an email (with my gmail to my gmail for testing) (using python 3.7.0) and i tried put..... More

Print this item

  Matplotlib 1.43 to 1.5.2
Posted by: Gebbo - Sep-05-2018, 02:49 PM - Forum: General Coding Help - No Replies

I have the following code which does not give me an error with Matplotlib 1.4.* but it does with Matplotlib 1.5 upwards:

[python] def set_line_..... More

Print this item

  How to import dats from one sheet to another sheet based on Substring using python
Posted by: Vigneshkumarsakthivel - Sep-05-2018, 01:49 PM - Forum: Data Science - No Replies

My goal here is to import the data stored as DataFrame df in sheet1 based on the substring.

My DataFrame looks like below:
[output]df:[2 x 8]

..... More

Print this item

  Python 3 default location
Posted by: huehue - Sep-05-2018, 01:07 PM - Forum: News and Discussions - Replies (4)

If anyone want to know what the default location of Python 3 is, here you go

[icode]C:\Users\(your name)\AppData\Local\Programs\Python\Python37-32[/i..... More

Print this item

  Aggregation json by nested elements
Posted by: Omri - Sep-05-2018, 12:18 PM - Forum: General Coding Help - Replies (1)

I have the following structure:
[output]
[
{
"Name": "a-1",
"Tags": [
{
"Value": "a",
..... More

Print this item

  Confused by this modulo equation
Posted by: VikramSuh - Sep-05-2018, 10:56 AM - Forum: General Coding Help - Replies (3)

This is probably a simple question for experienced users...I'm just starting with Python and I'm working with modulo equations. The tutorial I'm using..... More

Print this item

  ModuleNotFoundError: No module named '__main__.vtt'; '__main__' is not a package
Posted by: MM2018 - Sep-05-2018, 09:41 AM - Forum: General Coding Help - Replies (26)

https://github.com/antiboredom/videogrep
I am using 64bit Win10, python 32bit 3.70, everything installed fine, but I got this, problem.
already .srt..... More

Print this item

  Connecting python script into HTML with flask
Posted by: Piqurs - Sep-05-2018, 09:32 AM - Forum: Web Scraping & Web Development - Replies (1)

Hello,

I'm currently working on a project and I need some help with flask since I'm a bit new to flask I dont know how to connect my python script ..... More

Print this item

  pymysql ifnull
Posted by: aland - Sep-05-2018, 08:33 AM - Forum: General Coding Help - Replies (4)

I am using IFNULL in a select statement with a group by & rollup . In the mysql work bench it works perfectly but when I use it in python-pymysql in s..... More

Print this item

  call a function from other functions ...
Posted by: evilcode1 - Sep-05-2018, 08:14 AM - Forum: General Coding Help - Replies (2)

hello all ...

im writing a code to check the system if it linux or windows and do so if expressions after checking the system ....

this is my c..... More

Print this item

  python indentation errror and output error
Posted by: jazzy - Sep-05-2018, 06:14 AM - Forum: Data Science - Replies (4)

[python]

def backtest(parameters, price1,init_capital, max_capital_deploy, buy_margin, sell_margin):
longwindow = int(parameters[0])
..... More

Print this item

  Unexpected simpy simulation output
Posted by: bakas - Sep-05-2018, 06:00 AM - Forum: General Coding Help - Replies (1)

I have just started with Simpy and python in general and I am trying to build a simulation code, which runs simulation for multiple stores in the same..... More

Print this item

  Unexpected character after line continuation character
Posted by: joshyb123 - Sep-05-2018, 05:14 AM - Forum: Homework - Replies (5)

I have a simple assignment to basically get name and address information and display it neatly with a single print statement. I'm getting an error "Un..... More

Print this item

  function wanted: resolve relative path
Posted by: Skaperen - Sep-05-2018, 04:40 AM - Forum: General Coding Help - Replies (4)

i would like a function, that given paths to 2 directories, in either absolute or relative form, determines the path to reference directory 1 from dir..... More

Print this item

  [split] Is there any issue related to path defined somewhere
Posted by: purnima1 - Sep-05-2018, 04:22 AM - Forum: General Coding Help - Replies (2)

Hi Team,

Is there any issue related to path defined somewhere

Print this item

  a neat picture based on recursive number
Posted by: phillip1882 - Sep-05-2018, 01:55 AM - Forum: GUI - Replies (1)

i need to save an image created by turtle module
here's my code
[python]import turtle

recurse = [""]*1000000
recurse[2] = "<>"
n = 2
p = 1
wh..... More

Print this item

  Cannot update or install anything with pip, SSL error
Posted by: nickystixx45 - Sep-04-2018, 08:41 PM - Forum: General Coding Help - Replies (6)

Hi everyone, this is my first time posting on here and I really need help with this problem. I've had Python and pip on my PC since I got it about a y..... More

Print this item

  Nested loop
Posted by: Tryhard20 - Sep-04-2018, 08:04 PM - Forum: Homework - Replies (3)

lyrics = ["I wanna be your endgame", "I wanna be your first string",
"I wanna be your A-Team", "I wanna be your endgame, endgame"]
lines_o..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  No new line from print in... 1 hour ago Lou Pedroski55 General Codin...
  Python compiler 7 hours ago NeoQuant NeoQuant General Codin...
  Trading Risk management s... 8 hours ago NeoQuant NeoQuant Code sharing
  Standard template Data En... 9 hours ago 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... 579497
  Tutorial Requ... 512840
  Web Scraping ... 442365
  Newbie with P... 386396
  New Users Int... 381719
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 7393
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
adityaN Today
NeoQuant Yesterday
Hosthubac Yesterday
ifdainstitute7 Yesterday
MOHAMMAD_mk Yesterday

User Panel Messages

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