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,671
» Latest member: OLHOSANTOTM
» Forum threads: 38,645
» Forum posts: 175,052

Full Statistics

Online Users
There are currently 323 online users.
» 0 Member(s) | 319 Guest(s)
Baidu, Google, Yandex

Latest Threads
While loop is terminating...
Forum: Homework
Last Post: Plyth
Today, 01:49 AM
» Replies: 2
» Views: 220
PythonPath file
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 10:56 PM
» Replies: 7
» Views: 19,778
Building a food delivery ...
Forum: Homework
Last Post: nooryasmeen022
Yesterday, 04:12 PM
» Replies: 3
» Views: 7,520
Python Install Mager Help
Forum: News and Discussions
Last Post: snippsat
Yesterday, 09:43 AM
» Replies: 5
» Views: 364
RemoTe server operation w...
Forum: General Coding Help
Last Post: mario17
Yesterday, 07:18 AM
» Replies: 4
» Views: 303
Hide CLI while grabbing i...
Forum: GUI
Last Post: Gribouillis
Jul-03-2025, 08:12 AM
» Replies: 1
» Views: 156
Venv - Python Virtual Env...
Forum: General Coding Help
Last Post: Larz60+
Jul-02-2025, 05:41 PM
» Replies: 4
» Views: 689
textbox compare command n...
Forum: GUI
Last Post: deanhystad
Jul-02-2025, 01:40 PM
» Replies: 1
» Views: 234
Deploy Flask apps on Wind...
Forum: Web Scraping & Web Development
Last Post: DeaD_EyE
Jul-02-2025, 09:23 AM
» Replies: 2
» Views: 5,957
How to ask Smart Question...
Forum: Board
Last Post: Thatedge
Jul-01-2025, 08:10 AM
» Replies: 3
» Views: 5,688

 
  Return None
Posted by: student8 - Oct-07-2017, 10:07 PM - Forum: Homework - Replies (6)

I am a beginner at programming and I wrote a function that returns the int value of a string but I want the function to return none if the input doe..... More

Print this item

  summation of series
Posted by: student8 - Oct-07-2017, 09:03 PM - Forum: Homework - Replies (6)

I am trying to create a function that return the sumer of the following series 1000 +1/1^2 + 1/2^2 ... and so on for the given integer n.

So far I ..... More

Print this item

  Identity Operators and basic Forum etiquette.
Posted by: Boogachomp - Oct-07-2017, 07:32 PM - Forum: General Coding Help - Replies (3)

Hey fellow users! I just started learning Python a few weeks ago via the 'Beginning Programming wit Python for Dummies' book. I am currently on operat..... More

Print this item

  How to create a question generator?
Posted by: student8 - Oct-07-2017, 07:22 PM - Forum: Homework - Replies (9)

I am trying to create a function where it takes two parameters, an integer "flag" and a positive integer "n". If flag is 0, primary_school_quiz helps ..... More

Print this item

  Palindrome.strip pirts.emordnilaP
Posted by: RodNintendeaux - Oct-07-2017, 07:12 PM - Forum: Homework - Replies (4)

I have a homework assignment that wants me to get a user input string, reverse it, then remove all punctuation. After that, I must compare original st..... More

Print this item

  [BS4] Having Trouble Scraping A Single URL
Posted by: digitalmatic7 - Oct-07-2017, 05:51 PM - Forum: Web Scraping & Web Development - No Replies

It seems this should work, not sure why I'm having issues Wall LOL

I'm trying to scrape a single URL off a page.. it's an IFRAME SRC link. ..... More

Print this item

  Import problems
Posted by: Lux - Oct-07-2017, 05:49 PM - Forum: General Coding Help - Replies (2)

I am trying to use python-docx, but I can't get it to import. I'm pretty sure it's installed- if I do pip install python-docx, I get ..... More

Print this item

  Word Search Solver
Posted by: PythonLamer - Oct-07-2017, 05:26 PM - Forum: General Coding Help - Replies (4)

Hello all,

First time here. So I've pieced together some code and can't quite figure out how to get it to work. It's not throwing any errors, but i..... More

Print this item

  IndentationError when no problem with indentation
Posted by: BobLoblaw - Oct-07-2017, 05:17 PM - Forum: Data Science - Replies (10)

I have a legacy Python script that I'm attempting to get running; this code was functional at the time of development. However, when I attempt to run ..... More

Print this item

  "Widget Javascript not detected" error
Posted by: BobLoblaw - Oct-07-2017, 04:48 PM - Forum: General Coding Help - No Replies

I have a Python script that I'm attempting to run; it includes the use of a widget. The relevant code is:

[python]from my_widget import *

# {cod..... More

Print this item

  Python for Everybody 5.2 assignment
Posted by: baba04201 - Oct-07-2017, 03:58 PM - Forum: Homework - Replies (20)

Hey guys- I'm on my last assignment for Python and I need some expert assistance please.

This is the assignment:
5.2 Write a program that repeate..... More

Print this item

  Good Books to Learn Threading
Posted by: srosemond - Oct-07-2017, 02:56 PM - Forum: Bar - Replies (2)

Any good books about multi threading in general? I come from a background of Java/C#, and we never covered multi-threading in school all that much. As..... More

Print this item

  Chronometer/notifiactions/countdown program using notify2
Posted by: alexbartzos - Oct-07-2017, 01:21 PM - Forum: Code sharing - No Replies

Hello!

I just finished writing a program on a Debian amd64 laptop for Python3 and it seems fine.
Basically it is a program that notifies you when you..... More

Print this item

  Passowrd length again
Posted by: wavic - Oct-07-2017, 11:26 AM - Forum: Board - Replies (8)

Again, why is that restriction for 30 characters max password length?

Print this item

  define a main()
Posted by: Pedroski55 - Oct-07-2017, 08:59 AM - Forum: General Coding Help - Replies (1)

I managed, with help from this site and the book 'Automate the Boring Stuff', to write several little routines. To my utter amazement, they all now wo..... More

Print this item

  [Selenium] Xpath Drop Down Use Variable
Posted by: digitalmatic7 - Oct-07-2017, 06:31 AM - Forum: Web Scraping & Web Development - Replies (3)

I wanted to have a variable (random number between 1 and 12) used for my drop down option value..

So instead of value='05' it would be something lik..... More

Print this item

  Struggling To Work With Anti-Captcha API
Posted by: digitalmatic7 - Oct-07-2017, 06:19 AM - Forum: General Coding Help - Replies (1)

Hey guys, glad to be a member, I've been learning Python for the past few weeks and I'm a bit out of my depth.

I'm stuck trying to connect to [url=..... More

Print this item

  Installing packages through Anaconda?
Posted by: Athenaeum - Oct-07-2017, 04:36 AM - Forum: Data Science - Replies (5)

I have successfully installed the pandas package via Anaconda. At first, I was only able to use pandas when I opened Python via Anaconda. After play..... More

Print this item

  now you get to see what my old password was
Posted by: Skaperen - Oct-07-2017, 03:17 AM - Forum: Bar - Replies (4)

now you get to see what my old password was:

g7_DS+qCgy&@BV,B1?b5W/.&%,=k&W

and no, it is not used anywhere else.

Print this item

  Turtle and Random
Posted by: Juiceman - Oct-07-2017, 01:16 AM - Forum: Homework - Replies (2)

So it keeps erroring a the the second random (rnumber = random.randint(1,4) number i'm trying to generate. any ideas why?
[python]#Program that uses ..... More

Print this item

  What default directory does "open" function draw from?
Posted by: Athenaeum - Oct-06-2017, 10:23 PM - Forum: General Coding Help - Replies (4)

I experimented with using the "open" function to open text files, and in doing so I had to type out the file directory on my hard drive. However, in ..... More

Print this item

  Deeper explanation of the "for i" please
Posted by: mtndewlove - Oct-06-2017, 07:18 PM - Forum: General Coding Help - Replies (6)

for i in a:
if i < 5:
b.append(i)


MY questions is why does the "i" in the "for i in a" part of the code stand for the each of the i..... More

Print this item

  I am a total noob, I need this reworked
Posted by: edlentz - Oct-06-2017, 07:09 PM - Forum: Networking - Replies (4)

OK so I know enough about Python and that is that I don't know it. I normally install IP phones not program them. Anyuway, I have been looking all ove..... More

Print this item

  Problem installing urlparse4 package
Posted by: BobLoblaw - Oct-06-2017, 04:53 PM - Forum: General Coding Help - Replies (2)

I'm attempting to use legacy code created earlier this year that contains the line:

from urlparse import urljoin
However, when ..... More

Print this item

  managing modules/scripts dynamically
Posted by: hbknjr - Oct-06-2017, 04:38 PM - Forum: General Coding Help - Replies (2)

I have a collection of scripts and modules that I want to integrate into an application{CLI for now}. The application needs to be able to list all the..... More

Print this item

  voice assistant python based pyaudio error
Posted by: hardik - Oct-06-2017, 04:01 PM - Forum: General Coding Help - Replies (6)

https://drive.google.com/file/d/0B_vS8-m...sp=sharing
this my python code i gott error of pyaudio import but i import it give..... More

Print this item

  Number of characters in QLabel
Posted by: hzcodec - Oct-06-2017, 03:05 PM - Forum: GUI - Replies (2)

I'm trying out Qt4 and just want to print out a string in a window. Now, the string is clipped. All characters are not printed. So what am I missing?..... More

Print this item

  Koch fractal with iteration
Posted by: drimades - Oct-06-2017, 01:19 PM - Forum: Homework - Replies (7)

I tried this code for generating Koch's curve:
[code]
from turtle import *

def koch(length, depth):
if depth == 0:
forward(length)
..... More

Print this item

  Failed to establish a new connection: [Errno -2] Name or service not ...
Posted by: rajeev1729 - Oct-06-2017, 06:04 AM - Forum: Data Science - Replies (3)

pip install numpy

gives following error:
etrying (Retry(total=4, connect=None, read=None, redirect=None)) same line continued......

Print this item

  Changing Python Path
Posted by: sobrio1 - Oct-06-2017, 03:44 AM - Forum: Data Science - Replies (3)

I installed Anaconda so I could use Jupyter Notebook for an online Python course. Now when I try to run previous Python programs in Idle, I can't impo..... More

Print this item

  Rock Paper Scissors
Posted by: Warmlawpk441 - Oct-06-2017, 02:08 AM - Forum: Homework - Replies (4)

I seem to have an issue with getting this program to enter the loops correctly and the computer to generate a random number to compare against the use..... More

Print this item

  Strings inside other strings - substrings
Posted by: OmarSinno - Oct-05-2017, 06:08 PM - Forum: Homework - Replies (2)

I have to write a function that takes a string argument str, returns the longest substring of str in which the
letters occur in alphabetical order. F..... More

Print this item

  TypeError: unsupported operand type(s) for -: 'int' and 'instancemethod'
Posted by: SnekLover123 - Oct-05-2017, 05:20 PM - Forum: Game Development - Replies (5)

I'm trying to program a snake that's controlled by WASD keys and has collision detection. I also want it to turn in the direction it's moving. If you ..... More

Print this item

  "ImportError: No module named _ssl"
Posted by: click1234 - Oct-05-2017, 05:18 PM - Forum: Networking - Replies (3)

I have Python 2.7.14..
I want to run a python script .py but then:

"ImportError: No module named _ssl"

What can I do to fix it?

[img]http://..... More

Print this item

  Dictionary using variables as a keys
Posted by: andresgt - Oct-05-2017, 04:07 PM - Forum: General Coding Help - Replies (4)

Im trying to create a dicctionary using two lists (one as a key and the other one as a value) like this:

list1 = ['A4', 'A9', 'A2'] # keys
list2 =..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  While loop is terminating... Today, 01:49 jumpsworthnow Plyth Homework
  PythonPath file Yesterday, 22:56 JohnRLaw Pedroski55 General Codin...
  Building a food delivery ... Yesterday, 16:12 ElenaPapagia nooryasmeen022 Homework
  Python Install Mager Help Yesterday, 09:43 bowens1983 snippsat News and Disc...
  RemoTe server operation w... Yesterday, 07:18 mario17 mario17 General Codin...
  [WxPython] Hide CLI while... 07-03, 08:12 Winfried Gribouillis GUI
  Venv - Python Virtual Env... 07-02, 17:41 DanneA Larz60+ General Codin...
  [Tkinter] textbox compare... 07-02, 13:40 dmac6809 deanhystad GUI
  Deploy Flask apps on Wind... 07-02, 09:23 SpongeB0B DeaD_EyE Web Scraping ...
  How to ask Smart Question... 07-01, 08:10 metulburr Thatedge Board
  Exercise on reading a chu... 07-01, 06:49 Nit_Picker polytrack Homework
Most views
  The best Prog... 572421
  Tutorial Requ... 485273
  Web Scraping ... 436955
  Newbie with P... 379803
  Thread remain... 351272
Most reputation
buran 581
snippsat 507
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+ 12071
buran 8173
snippsat 7344
deanhystad 6845
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
as1221 3
Newest members
OLHOSANTOTM Today
viratsolanki Today
chaless Today
agusputra99 Today
Andytan7 Today

User Panel Messages

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