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,936
» Latest member: MihaiPope
» Forum threads: 38,723
» Forum posts: 175,511

Full Statistics

Online Users
There are currently 57 online users.
» 1 Member(s) | 45 Guest(s)
Apple, Google, Bing, DuckDuckGo, AOL, Internet Archive, Twitter, kshahzad1985

Latest Threads
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
2 hours ago
» Replies: 2
» Views: 183
FAST,SECURE AND RELIABLE ...
Forum: Game Development
Last Post: MihaiPope
3 hours ago
» Replies: 0
» Views: 66
403 Error
Forum: Web Scraping & Web Development
Last Post: CaptainNewb
3 hours ago
» Replies: 10
» Views: 3,638
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
9 hours ago
» Replies: 1
» Views: 3,308
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
11 hours ago
» Replies: 4
» Views: 592
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,034
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 943
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 1,172
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,198
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,289

 
  all_data.append not work it should be
Posted by: issac_n - Nov-29-2017, 10:49 AM - Forum: Data Science - Replies (4)

Huh ** I am not programmer Big Grin

currently I am trying to use "all_data.append" to append all xlsx files into one file ,
it return res..... More

Print this item

  Oracle web site
Posted by: Skaperen - Nov-29-2017, 08:14 AM - Forum: Bar - Replies (5)

i am wondering how many of my friends can check this exact URL for me:

    http://oracle.com/guaranteed

note that this is without the "www." on ..... More

Print this item

  Some Guy Today Told Me Python Isn't A Real Programming Language
Posted by: digitalmatic7 - Nov-29-2017, 06:26 AM - Forum: News and Discussions - Replies (11)

I ran into some guy while walking my dog and he said Python is a scripting language, and isn't a real programming language.

My instincts tell me he..... More

Print this item

  Home / Login & Logout Page
Posted by: ab_1986 - Nov-29-2017, 05:06 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi Guys ,

I am beginner in Python and django and creating a web app using these. I have to create a home page however not so sure about html stuff..... More

Print this item

  Help turning game into function
Posted by: kixxm - Nov-29-2017, 04:35 AM - Forum: General Coding Help - Replies (5)

#Make a guess and get feedback.
guess=0
fb=0
while fb != 'c' or fb != 'C':
guess = random.randint(lower, upper)
print("I'm guessing your numb..... More

Print this item

  & vs %
Posted by: Skaperen - Nov-29-2017, 03:40 AM - Forum: General Coding Help - Replies (7)

which is better:

    foo = bar % 256
or:
    foo = bar & 255
???

i just benchmarked them for speed.  the 2nd is sligh..... More

Print this item

  Space ships movements
Posted by: pierrem13 - Nov-29-2017, 03:08 AM - Forum: Game Development - Replies (1)

Hi, I want to do a spaceship that I can control with the arrows on the keyboard. For now I'm able to make it rotate on itself with the left and the ri..... More

Print this item

  Game in Pycharm using pyglet
Posted by: pierrem13 - Nov-29-2017, 01:54 AM - Forum: General Coding Help - No Replies

Hi, so I'm trying to make a game where you basically control a ship. For now, I' m able to make the ship rotate with key event, but now I want to make..... More

Print this item

  a dictionary of ranges
Posted by: Skaperen - Nov-29-2017, 01:53 AM - Forum: General Coding Help - Replies (10)

looking up numbers in a very sparse unordered collection is easy with a dictionary.  but what about a sparse collection of ranges?  this would be a se..... More

Print this item

  how to extract a portion of data from text lines by python 2
Posted by: alex0516 - Nov-29-2017, 01:38 AM - Forum: General Coding Help - Replies (2)

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  How are these methods working within this class
Posted by: workerbee - Nov-29-2017, 01:23 AM - Forum: General Coding Help - Replies (3)

I was wondering how the self.data attribute gets into the display method from the setdata method .Thank You
[python]class FirstClass:

def setdata..... More

Print this item

  How do I avoid Beautiful Soup redirects?
Posted by: HiImNew - Nov-29-2017, 12:28 AM - Forum: Web Scraping & Web Development - Replies (9)

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  transform list to tuple with
Posted by: takaa - Nov-28-2017, 10:30 PM - Forum: General Coding Help - Replies (2)

Hi,

summary:
I have this output: [(1,), (2,), (3,), (4,), (5,)]
Question, how can I transform this to: ('1', '2','3','4',5')

Below is my trial..... More

Print this item

  weird error in random sentence generator
Posted by: bobger - Nov-28-2017, 09:46 PM - Forum: General Coding Help - Replies (9)

i put all the lists on top and the error still occurs.I am using python3.6.3 on windows 10.
sometimes i get this error sometimes not when i run this ..... More

Print this item

  Transcrypt 3.6.56 Python to Javascript compiler now supports embedded JSX.
Posted by: jacques_de_hooge - Nov-28-2017, 09:35 PM - Forum: News and Discussions - Replies (1)

Version 3.6.56 of the Transcrypt Python to JavaScript compiler now supports embedded JSX for use in combination with Rea..... More

Print this item

  Having Trouble With Threading
Posted by: digitalmatic7 - Nov-28-2017, 08:47 PM - Forum: Web Scraping & Web Development - Replies (2)

This code isn't throwing errors, instead it's only giving me limited results based on "for i in range(20)" line. If I have it set as '20' it will only..... More

Print this item

  Relay switches On and Off every cylcle...
Posted by: hotwalk - Nov-28-2017, 05:50 PM - Forum: General Coding Help - Replies (6)

[python]
import RPi.GPIO as GPIO
import Adafruit_DHT
from time import sleep

GPIO.setwarnings(False)
GPIO.setmode(GPIO.BOARD)
GPIO.setup(12,GPI..... More

Print this item

  pandas Dataframe as "confidence table" for matchmaking?
Posted by: takaa - Nov-28-2017, 04:36 PM - Forum: Data Science - Replies (1)

Hi,

I wonder if I am on the right track and would like to get your input on my problem:

Goal:
Find a link between two rows in two tables base..... More

Print this item

  filtering a string
Posted by: hello_its_me - Nov-28-2017, 02:17 PM - Forum: General Coding Help - Replies (6)

Hi everyone,
I am looking for a way to filter words out of a string. I need it to work like this:
The string contains known words and unknown words ..... More

Print this item

  another dice roll!
Posted by: mzmingle - Nov-28-2017, 02:14 PM - Forum: Game Development - Replies (3)

My friend wrote a program that displays an amount of dots (like a dice would), and pauses when you click. I tried to edit this code to use images - bu..... More

Print this item

  Saving the results from an input in a txt. file
Posted by: pythonenthusiast - Nov-28-2017, 01:17 PM - Forum: Homework - Replies (2)

Im currently working on a school project where I have to make a multiplication table where you put in a value for the size you want the table to be. I..... More

Print this item

  my "keep" script
Posted by: Skaperen - Nov-28-2017, 06:13 AM - Forum: Bar - Replies (31)

file keep.py is a command and function that "keeps" a specified file by making a time stamped copy.  ..... More

Print this item

  what i am doing tonight
Posted by: Skaperen - Nov-28-2017, 03:05 AM - Forum: Bar - No Replies

tonight i am doing a lot of rewriting of sessionin.py that inputs to a session, revising the code that interprets the control character escape ..... More

Print this item

  code style - one line subclause on same line
Posted by: Skaperen - Nov-28-2017, 02:50 AM - Forum: News and Discussions - Replies (5)

i used to use this style

   if value is True: count += 1
but i have changed to this style[python]  if value in True:
        count += ..... More

Print this item

  Best Module for Navigating Google Drive?
Posted by: HiImNew - Nov-28-2017, 12:05 AM - Forum: General Coding Help - Replies (2)

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  Class Instances overriding class members and attributes.
Posted by: Leaf - Nov-27-2017, 09:31 PM - Forum: General Coding Help - Replies (7)

I'm trying to add each person to a list or dictionary. In this case it's a dictionary, but the same thing happens whether I reformat it to be a list t..... More

Print this item

  Array to get profit (school assignment)
Posted by: harryvandervelden - Nov-27-2017, 06:36 PM - Forum: Homework - Replies (2)

I've got an assignment to do, can someone help me out? I don't have a clue what to do.

The bitcoin is a digital currency whose value can go up and ..... More

Print this item

  Immutable Book Class
Posted by: QueenSvetlana - Nov-27-2017, 06:23 PM - Forum: General Coding Help - Replies (10)

[python]from copy import deepcopy


class Book:

def __init__(self, book_title, authors):
self.book_title = book_title
self.author..... More

Print this item

  Creating a file with variable name but distinct extension
Posted by: Moeniac - Nov-27-2017, 05:18 PM - Forum: Homework - Replies (1)

Hello everybody,
for my current homework i need to create an amount of *.csv files, however the filename must be taken from a list that is provided a..... More

Print this item

  Changing object values to see how air resistance works
Posted by: Tomsom - Nov-27-2017, 05:10 PM - Forum: Homework - No Replies

Hey all, I need to make a program in Vpython where you can press a button to launch a ball, which is affected by the air resistance, forward, and chan..... More

Print this item

  Maximum Occurrence Letter
Posted by: GalaxyCR - Nov-27-2017, 02:08 PM - Forum: General Coding Help - Replies (2)

Hey Guys, So I have an assignment regarding finding the most letters used in a word. For some reason I can't seem to make it work as the output that I..... More

Print this item

  Problem with tkinter widget list
Posted by: Larz60+ - Nov-27-2017, 12:54 PM - Forum: GUI - Replies (2)

This is part of the Enigma project that I am working on.
I'm adding a new post here, because this is a question having to do specifically with a GUI ..... More

Print this item

  when calling module comes up with syntax error
Posted by: DAS - Nov-27-2017, 12:50 PM - Forum: General Coding Help - Replies (5)

[python]def main():
#These are the two options available
print ("1: register")
print("2: login")

signIn = int(input("Do you ..... More

Print this item

  dice roll?
Posted by: mzmingle - Nov-27-2017, 11:38 AM - Forum: Game Development - Replies (1)

For homework I've been told to write a pygame program where you can click to roll a dice. I've tried making it so you just click a button and it displ..... More

Print this item

  for loop execution
Posted by: sumandas89 - Nov-27-2017, 08:19 AM - Forum: General Coding Help - Replies (5)

I python documentation I found the below code and it's output -

[b]>>> a = ['Mary', 'had', 'a', 'little', 'lamb']
>>> for i in range(len(a)):
........ More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  what does % stand for in ... 2 hours ago arbiel arbiel General Codin...
  FAST,SECURE AND RELIABLE ... 3 hours ago MihaiPope MihaiPope Game Developm...
  403 Error 3 hours ago CaptainNewb CaptainNewb Web Scraping ...
  Scraping a page with log ... 9 hours ago iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... 11 hours ago 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...
  Another app idea - intera... 09-16, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
Most views
  The best Prog... 576225
  Tutorial Requ... 497866
  Web Scraping ... 440162
  Newbie with P... 383999
  New Users Int... 366687
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+ 12089
buran 8175
snippsat 7367
deanhystad 6891
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
MihaiPope Today
Baran12332 Today
Hershien Today
Diyaseating Today
marineoman Today

User Panel Messages

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