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

Full Statistics

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

Latest Threads
IBKR Purchasing code issu...
Forum: General Coding Help
Last Post: Ronny
50 minutes ago
» Replies: 1
» Views: 139
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:00 PM
» Replies: 5
» Views: 9,241
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
Yesterday, 03:29 AM
» Replies: 2
» Views: 540
Is the interpreter that c...
Forum: General Coding Help
Last Post: helendamdam
Yesterday, 02:36 AM
» Replies: 0
» Views: 165
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
Sep-22-2025, 08:56 PM
» Replies: 9
» Views: 695
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 4,934
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 1,210
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,571
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 3,147
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,878

 
  Artificial Intelligence?
Posted by: Panda - Jun-20-2018, 07:32 PM - Forum: General Coding Help - Replies (3)

Can someone help me by creating an artificial intelligence? It's supposed to take answers from questions asked, then combine the answers (unknown, yes..... More

Print this item

  If statement with arrays without activating while statement
Posted by: DreamingInsanity - Jun-20-2018, 07:14 PM - Forum: Homework - Replies (2)

[python]import time #importing time fuction

Answer1 = ["Push Walls", "PUSH WALLS", "push walls", "Push walls", "push Walls"] #Array of all possible..... More

Print this item

  is it possible to run commands on a device which is two servers away from our PC in P
Posted by: Nirosh123 - Jun-20-2018, 05:25 PM - Forum: General Coding Help - Replies (7)

Hello Guys

I want to run python script in PC to connect to a router which can be accessed via 2 jump server, and the command out put should come my..... More

Print this item

  Staying up-to-date with a language
Posted by: QueenSveta - Jun-20-2018, 03:23 PM - Forum: Bar - Replies (3)

Programming languages change from time to time, new features are added, some are deprecated. Python is now my go to language for any task not OS depen..... More

Print this item

  Beginner Python help
Posted by: wak_stephanie - Jun-20-2018, 02:51 PM - Forum: Homework - Replies (9)

# INSTRUCTIONS
#
# In this program, you must ask the user:
# "What is your name?"
#
# And then respond by printing out a personalized greeting.
..... More

Print this item

  Button widget gets stuck from using tkinter.messagebox?
Posted by: Nwb - Jun-20-2018, 01:46 PM - Forum: GUI - Replies (2)

So, this is a converter script (my first ever gui). When you type in the entry widgets the script is supposed to verify whether it is a currency code ..... More

Print this item

  Difficulty Using .rstrip in a series
Posted by: wdc234 - Jun-20-2018, 01:11 PM - Forum: Data Science - Replies (1)

Hi all,

I'm hoping to eventually reformat a series of time values so that they are all in military time. I'm still a few steps away from that, but..... More

Print this item

  Output substrings from rows in pandas
Posted by: brocq_18 - Jun-20-2018, 01:02 PM - Forum: Data Science - Replies (5)

I have a dataframe with a column "C" which contains address information. How can I single out the number of unique cities? In the example below it wou..... More

Print this item

  I need help with my code
Posted by: Dynamix123 - Jun-20-2018, 12:59 PM - Forum: General Coding Help - Replies (2)

1 import random
2
3
4 dice1 = random.randint(1,6)
5 dice2 = random.randint(1,6)
6 dice3 = random.randint(1,6)
7 dice4 = random.randint(1,6)
8
..... More

Print this item

  Unable to connect to MS Access
Posted by: sasanuru - Jun-20-2018, 12:32 PM - Forum: Homework - Replies (1)

Hi All,

I am trying to connect MS Access DB, but failed with below errors.
Tried with pyodbc & pypyodbc packages even failed.

OS: Windows 10 ..... More

Print this item

  Issues with Python script as service
Posted by: satishgunjal - Jun-20-2018, 09:10 AM - Forum: General Coding Help - Replies (8)

Setup details:
RPI Version: Raspberry Pi 2 Model BV1.1
Python Version: 2.7

I have created a small program to control the fan and lights in my hyd..... More

Print this item

  python and postgres DB SQL execution
Posted by: bluefrog - Jun-20-2018, 05:17 AM - Forum: General Coding Help - Replies (3)

Hi
I'm attempting to execute several create table statements in Python3 onto a PostgreSQL 10.4 database.
The python3 code looks like this:
[python..... More

Print this item

  How to restrict characters used in an Entry widget?
Posted by: Nwb - Jun-20-2018, 02:51 AM - Forum: GUI - Replies (2)

I surfed the internet for a long time but all of which I tried did not work.

Here is on of which I tried:

[python]
#! /usr/bin/env python
# -*- co..... More

Print this item

  Correct way to implement immutable class
Posted by: QueenSveta - Jun-20-2018, 01:13 AM - Forum: General Coding Help - Replies (3)

As of Python 3.6.5, what is the correct way to create an immutable object? Would you simply use a namedtuple? Or inherit from a namedtup..... More

Print this item

  Test folder
Posted by: hshivaraj - Jun-19-2018, 10:09 PM - Forum: General Coding Help - Replies (1)

Hi guys
Just wanted to find out you options on this. I have a project folder like so

[python]- project1
- app1
- src
- app2
..... More

Print this item

  How do I create a timer that counts down?
Posted by: LavaCreeperKing - Jun-19-2018, 07:45 PM - Forum: General Coding Help - Replies (4)

Could some one tell me how to make a timer that counts down? I have no problem making one that counts up, but I am at a loss with trying to figure out..... More

Print this item

  Even if Atom is on the whisker menu, impossible to run it
Posted by: sylas - Jun-19-2018, 07:19 PM - Forum: General Coding Help - Replies (9)

Hi all. For the moment I left my new big PC(64 bits, double boot) and I work now on my 9 years old 32 bits PC. It is on Linux. I go to the whisker men..... More

Print this item

  Printing in python 3.6.5
Posted by: water_fox - Jun-19-2018, 05:08 PM - Forum: General Coding Help - Replies (1)

Anyone able to help me understand why this does not print to the console?

[python]def display_intro():
print('''why is this multi line comment..... More

Print this item

  Completely new to coding - quick question
Posted by: Oster22 - Jun-19-2018, 04:09 PM - Forum: General Coding Help - Replies (1)

Hi guys, please direct me to another forum if I'm in the wrong place. Here's the synopsis:

-Boss gave me a little project, won't help me
-I have d..... More

Print this item

  [Python3.X] [Windows] Remote Registry Access (like WMI or other)
Posted by: ManuHry - Jun-19-2018, 02:10 PM - Forum: Networking - Replies (1)

I am facing to a problem, there aren't many sources on the web...

I want to access to the Windows registry of a remote machine. I use the winreg mo..... More

Print this item

  Help! Character won't move!
Posted by: keyfive - Jun-19-2018, 02:00 PM - Forum: Game Development - Replies (4)

Hi, I am a new programmer. My red cube is not moving

[python]
import pygame
import time
import random
import sys

pygame.init()

#screen va..... More

Print this item

  how to use dataframe in dash?
Posted by: zhujp98 - Jun-19-2018, 12:51 PM - Forum: General Coding Help - Replies (1)

I am very new to python, need to develop some dash,

I have a padas dataframe.
df:
x y1 y2
1 4 2
2 1 4
3 5 5
My question is how ..... More

Print this item

  Unable to install Python 3
Posted by: PierreSoulier - Jun-19-2018, 12:48 PM - Forum: General Coding Help - Replies (2)

Hello!

I'm unable to install Python 3 as i get this:

[python]
sudo apt-get install python3

Reading package lists... Done
Building dependenc..... More

Print this item

  How to auto fill latitude and longitude fields in Django2.0.6?
Posted by: PrateekG - Jun-19-2018, 11:19 AM - Forum: Web Scraping & Web Development - Replies (9)

Hi Experts,

I have created an address form in Django2.0.6+Mysql+Python3.6 and it has location,address,latitude,longitude fields.

I want to auto ..... More

Print this item

  general tree traversal
Posted by: cwilson1 - Jun-19-2018, 11:12 AM - Forum: Code sharing - Replies (2)

Hello all,
I'm refreshing my memory on tree traversal (just because) and I'd appreciate any comments/feedback on my preorder traversal and breadth fi..... More

Print this item

  Monte Carlo simulation for bitcoin, won't work.
Posted by: jer117 - Jun-19-2018, 10:25 AM - Forum: Data Science - Replies (5)

#Author: johannes <info@numex-blog.com>, 22.12.17
#License: MIT License (http://opensource.org/licenses/MIT)

#I currently can't get this working, ..... More

Print this item

  Problem with quotes on MySQL request
Posted by: PierreSoulier - Jun-19-2018, 08:43 AM - Forum: Homework - Replies (7)

Hello World,

i've been searching for a while but i've found nothing so i post it here.

My problem is that I want to create a function that searc..... More

Print this item

  Why am I getting this NameError using threading?
Posted by: Legacy - Jun-19-2018, 08:01 AM - Forum: General Coding Help - Replies (3)

I have started working with threading and now I get an error on the function main(). I have made a very simplistic version of my code that reproduces ..... More

Print this item

  PLEASE HELP! TypeError: unsupported operand type(s) for +: 'pygame.Surface' and 'int'
Posted by: keyfive - Jun-19-2018, 07:52 AM - Forum: Game Development - Replies (1)

Very new coder here. Line 32 says player = pygame.draw.rect(gDisplay, red, ((gDisplay + playerStartingx),(gDisplay + playerStartingy), 60, 60), 0)
..... More

Print this item

  How to support multiple users with heavy data processing
Posted by: Gingmeister - Jun-19-2018, 06:18 AM - Forum: Networking - Replies (3)

Hi All,

Forgive my ignorance on the realities of networking but...how can I support many users simultaneously with my (cloud-hosted) scraping app ? I..... More

Print this item

  How can I write formatted (i.e. bold, italic, change font size, etc.) text to a file?
Posted by: JohnJSal - Jun-19-2018, 03:53 AM - Forum: General Coding Help - Replies (13)

Hello all. I'm wondering if someone can direct me to the proper documentation for how to write text to a file that is formatted in different ways, suc..... More

Print this item

  Draw a square-aspect log-linear plot via matplotlib
Posted by: Antonio - Jun-19-2018, 03:08 AM - Forum: Data Science - Replies (4)

So I have a plot with logarithmic x axis but linear y axis, and I want the plot to be square-aspect, but when I use plt.axis('equal') it does n..... More

Print this item

  Write a for loop on list of lists without changing the shape of the main list
Posted by: Antonio - Jun-18-2018, 10:17 PM - Forum: General Coding Help - Replies (3)

So I am new to python and am having difficulties on writing an efficient for loop on a list of lists. I have a list called "mylist" and I need ..... More


Attached Files

Thumbnail(s)
           
Print this item

  AttributeError: 'NoneType' object has no attribute 'n' in list of class objects
Posted by: jdrp - Jun-18-2018, 09:28 PM - Forum: General Coding Help - Replies (4)

So, I was trying to develop a game in PyGame and came across a problem. I tried it it on a much simpler code and it still returns an error, so I think..... More

Print this item

  My version GhostGame
Posted by: anickone - Jun-18-2018, 08:52 PM - Forum: Game Development - Replies (7)

[python]
from random import randint

def get_msg(msg, subject, subject_mark):
for i in range(1, doors+1):
if i in subject:
..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  IBKR Purchasing code issu... 50 minutes ago compuman145 Ronny General Codin...
  Creating a Mindmap progra... Yesterday, 12:00 J_Miller Pedroski55 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...
  real community 09-15, 20:16 decuser decuser News and Disc...
Most views
  The best Prog... 576762
  Tutorial Requ... 499080
  Web Scraping ... 440558
  Newbie with P... 384524
  New Users Int... 368361
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
Ronny Today
Luciana Today
MatthewRodia Today
andydt Today
victorcrown Yesterday

User Panel Messages

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