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,983
» Latest member: kyleconor797
» Forum threads: 38,733
» Forum posts: 175,567

Full Statistics

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

Latest Threads
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: SpongeB0B
2 hours ago
» Replies: 2
» Views: 91
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Today, 03:05 AM
» Replies: 4
» Views: 2,019
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Yesterday, 07:43 AM
» Replies: 2
» Views: 429
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Yesterday, 12:21 AM
» Replies: 2
» Views: 1,072
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,133
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 800
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 3,091
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,538
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 9,126
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,583

 
  is a str object a valid iterator?
Posted by: Skaperen - Jan-27-2020, 02:06 AM - Forum: General Coding Help - Replies (6)

is a str object a valid iterator?

Print this item

  Counting and grouping
Posted by: Kudzo - Jan-27-2020, 01:30 AM - Forum: Data Science - No Replies

Hi, I've got a dataset and would like to add the number of cases per year and put it in a new column. I used the following codes but wasn't able to ge..... More

Print this item

Photo Calculator python3
Posted by: Magicamtt455 - Jan-27-2020, 01:17 AM - Forum: General Coding Help - Replies (3)

I am trying to make a calculator in python for one of my classes.

Here is the code

[python]
n = 0
total = 0
while n >= 0:
n = int(inpu..... More

Print this item

  Unrelated new function causing existing working function to fail
Posted by: Nick_G - Jan-26-2020, 10:48 PM - Forum: General Coding Help - Replies (2)

Hi all,

I have a python script that basically works as follows:

[python]Items = pd.Dafaframe(some excel sheet)

def FunctionA(items):
try..... More

Print this item

  Jelp with a multidimensional loop
Posted by: Formationgrowthhacking - Jan-26-2020, 08:40 PM - Forum: General Coding Help - Replies (1)

Hi guys,

I need your help please to sold a complicate problem.

It is difficult for me to find the solution but in fact, I am sure it is just a f..... More

Print this item

  itertool islice why no negative values ?
Posted by: voidptr - Jan-26-2020, 08:36 PM - Forum: Code sharing - Replies (2)

About itertool islice.

Why islice doesn't support negative values ?

( I realized than negative index need oftn the len() of something, it might ..... More

Print this item

  Simulation
Posted by: DaRTHYGT - Jan-26-2020, 08:14 PM - Forum: Homework - Replies (2)

Hello My Friends,

I have some questions. hope so someone can help me because i will write my last exam and graudate from my school. Thats why, ple..... More

Print this item

  Discord bot not working
Posted by: julio2000 - Jan-26-2020, 07:28 PM - Forum: Networking - No Replies

[python]
from selenium import webdriver
import time
from selenium.webdriver.common.keys import Keys
import discord
from discord.ext import comman..... More

Print this item

  Get a value from a dictionary through input
Posted by: Anony - Jan-26-2020, 05:24 PM - Forum: General Coding Help - Replies (3)

Hi everyone, I'm new here! I have been programming with python for a month and I'm a beginner. Having to make a project for school, I need to know how..... More

Print this item

  Pausing without freezing
Posted by: Help_me_Please - Jan-26-2020, 05:10 PM - Forum: Game Development - Replies (3)

I have created a interactive game using pygame, I want like a pause before the computer takes its turn. I can only do that with pygame.time.wait(), bu..... More

Print this item

  Error importing package
Posted by: julio2000 - Jan-26-2020, 05:03 PM - Forum: General Coding Help - Replies (3)

[python]
import discord
from discord.ext import commands

client = commands.Bot(command_prefix= '.')

Token = 'a valid token'

@client.event
..... More

Print this item

  Extract Httponly, Secure, domain and path from a cookie
Posted by: randeniyamohan - Jan-26-2020, 04:59 PM - Forum: General Coding Help - No Replies

I am trying to extract the Httponly, Secure, domain and path from the given cookie in python. How do I do that in python ???

Code:
[python]
targe..... More

Print this item

  Global Variable Not Updating
Posted by: joew - Jan-26-2020, 01:05 PM - Forum: General Coding Help - Replies (2)

Based on responses I got from previously posting a question about global variables, the following code should work. But it's not. Clearly, my understa..... More

Print this item

  Calculator Loop Help
Posted by: dock1926 - Jan-25-2020, 10:26 PM - Forum: Homework - Replies (3)

I am new to python and I'm having trouble with my calculator looping. I am trying to get this output below. I'm having trouble with getting the loop t..... More

Print this item

  adding menu system and states (part 9)
Posted by: metulburr - Jan-25-2020, 10:23 PM - Forum: Game Tutorials - No Replies

Back to part 8

This section focuses on taking t..... More

Print this item

  [gpxpy] "Error parsing XML: not well-formed (invalid token): line 1, column 1"
Posted by: Winfried - Jan-25-2020, 09:45 PM - Forum: General Coding Help - Replies (5)

Hello,

For some reason,the gpxpy library isn't happy parsing the following very basic GPX (XML) file:

[python]<?xml version="1.0" encoding="UTF-..... More

Print this item

  an extra step in a loop
Posted by: Skaperen - Jan-25-2020, 07:51 PM - Forum: General Coding Help - Replies (1)

i am iterating over something with a loop such as for x in thing: but there is sometimes a value in x which needs an extra step. on ..... More

Print this item

  how to make my function be a generator
Posted by: Skaperen - Jan-25-2020, 07:19 PM - Forum: General Coding Help - Replies (2)

it was my understanding that a function with a yield statement would be a generator. but, what if the function i want to be the generator is really c..... More

Print this item

  recursion as a generator
Posted by: Skaperen - Jan-25-2020, 07:06 PM - Forum: General Coding Help - Replies (1)

i have a function that calls itself recursively. i want to make it be a generator. how would that complicate things?

Print this item

  calling a method for a docstring
Posted by: Skaperen - Jan-25-2020, 06:59 PM - Forum: General Coding Help - Replies (8)

can i call a method on a docstring?
[python]
def myfunction(foo,bar):
"""this is
my docstring for
my function.""".replace('\n',' ')
retu..... More

Print this item

  How to create an environment for program downloaded from github
Posted by: StartedNewLife - Jan-25-2020, 05:24 PM - Forum: General Coding Help - Replies (3)

I downloaded a ZIP package from git hub.
Also downloaded anaconda.
According to the instructions, I should create an environment.
But I need to in..... More

Print this item

  os.kill
Posted by: elstolbo - Jan-25-2020, 04:37 PM - Forum: Homework - Replies (1)

hello programmers.
I will develop an application to serve as a network tester and one of the parts of this application will be tshark, which is used ..... More

Print this item

  Web Scraping and crawling
Posted by: venkataramakrishna - Jan-25-2020, 04:21 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi Members,

I don't have any prior knowledge on Python. But i have a requirement to web scraping data from https://otexa.trade.gov/scripts/tqquanti..... More

Print this item

  Problem after changing Python directory
Posted by: Souila7 - Jan-25-2020, 03:46 PM - Forum: General Coding Help - Replies (1)

Hi Guys,

Well, I am still learning Python and I am following some tutorials to start. In the beginning, I installed Python in the default directory..... More

Print this item

  Is Python Installed?
Posted by: DaveMc - Jan-25-2020, 03:46 PM - Forum: General Coding Help - Replies (6)

Good morning,

I am new to the group and have a question I am hoping everyone can help with. I am working on a application and want to find out if t..... More

Print this item

  How to double quote filenames (spaces)?
Posted by: Winfried - Jan-25-2020, 02:42 PM - Forum: General Coding Help - Replies (2)

Hello,

I need to build a command and pass it to an external application.

Filenames may have spaces in them, so I must double quote them, but I c..... More

Print this item

  XML modules
Posted by: bertilow - Jan-25-2020, 02:05 PM - Forum: Web Scraping & Web Development - Replies (1)

I'm porting a web application from Perl to Python3 (using mod_wsgi and Flask). The application uses XML extensively.

I've found that I need to use ..... More

Print this item

  program a calculator
Posted by: manomarH - Jan-25-2020, 11:36 AM - Forum: General Coding Help - Replies (3)

hey guys if you have any suggestion to program a calculator without using class please tell my about

Print this item

  How to compute conditional unigram probabilities?
Posted by: jbond - Jan-25-2020, 11:34 AM - Forum: Homework - Replies (2)

Hello,

i have difficulties with my homework (Task 4).
I don't know how to do this.
I have already an attempt but I think it is wrong and I don't..... More

Print this item

  Beginners book in Spanish
Posted by: MauserMan - Jan-25-2020, 11:29 AM - Forum: News and Discussions - Replies (1)

Hi all!

I'm looking for a good "Python for beginners" book in Spanish for my wife.
She has a little bit of programming experience from a bash prog..... More

Print this item

  From sqlite3 to sqlalchemy
Posted by: qrion - Jan-25-2020, 10:52 AM - Forum: Web Scraping & Web Development - No Replies

Hi
Just wondering if its possible to make this sqlite3 code to sqlalchemy?

[python]@app.route("/addToCart")
def addToCart():
if 'email' not ..... More

Print this item

  Can I connect python/django to nginx "after the fact"?
Posted by: david503 - Jan-25-2020, 10:43 AM - Forum: Networking - Replies (2)

This tutorial describes how to get python and django up and running:

https://www.digitalocean.com/community/t...go-and-set..... More

Print this item

  Import all items from all modules from package
Posted by: DD169 - Jan-25-2020, 06:22 AM - Forum: General Coding Help - Replies (3)

Hello,

File Structure:
DND:

  • testing.py
  • Weapons:
    • __init__.py
    • Simple_Melee.py
    • Simple_Ranged.py
      [..... More

Print this item

  Help!
Posted by: Karliux2002 - Jan-25-2020, 03:37 AM - Forum: Homework - Replies (6)

Please, can someone help me with this problem:

The Fibonacci sequence is a series of related numbers. Usually, the series begins with the numbers 0..... More

Print this item

  Please Help
Posted by: jackthechampion - Jan-25-2020, 02:32 AM - Forum: General Coding Help - Replies (2)

So im in introduction to programming and we use python and the assignment is
Create a program that prompts the user to enter a first name and a last..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Parse Markdown / get the ... 2 hours ago SpongeB0B SpongeB0B General Codin...
  Error: cannot mix str wit... Today, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... Yesterday, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... Yesterday, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... 09-29, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
  My First App 09-27, 10:53 BCopeland64 carlbidwell Code Review
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
Most views
  The best Prog... 577449
  Tutorial Requ... 500990
  Web Scraping ... 441077
  Newbie with P... 385145
  New Users Int... 369737
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+ 12092
buran 8178
snippsat 7370
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
kyleconor797 Today
miriamwilliam Today
Davidkiplimo Today
Joliekeva Today
silversimon2 Yesterday

User Panel Messages

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