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,312
» Latest member: elizabethlittle6258
» Forum threads: 38,801
» Forum posts: 175,923

Full Statistics

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

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

 
  "Anything else expression" in Python
Posted by: spedy93 - Jun-21-2018, 12:15 AM - Forum: General Coding Help - Replies (1)

Hello, I´m new in programming, I am trying to erase something from the lines of a file,
example:
file is made of to colums:

[b]xxxx zzzz
aaaa ..... More

Print this item

  Liking Snippsat's new python image
Posted by: Larz60+ - Jun-20-2018, 10:52 PM - Forum: Bar - Replies (4)

Really nice job.

Print this item

  AWS lambda python help
Posted by: cbtshare - Jun-20-2018, 10:25 PM - Forum: General Coding Help - No Replies

Hello All,

I have the following , but when I try to run it nothing happens from the command line.I am using ubuntu 16, and I have everything config..... More

Print this item

  Create a monthly mean column in multiple years
Posted by: fyec - Jun-20-2018, 10:09 PM - Forum: General Coding Help - Replies (1)

I have a 'dates' column and a 'tmax' (temperature values) column. I want to create one another column that shows each month's average in each year. I ..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  No new line from print in... 9 hours ago Lou noisefloor General Codin...
  Python compiler 9 hours ago NeoQuant noisefloor General Codin...
  Trading Risk management s... Yesterday, 19:34 NeoQuant NeoQuant Code sharing
  Standard template Data En... Yesterday, 17:51 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... 579513
  Tutorial Requ... 512983
  Web Scraping ... 442377
  Newbie with P... 386402
  New Users Int... 381789
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 7394
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
elizabethlittle6258 Today
StepanVoronin Today
QABOB Today
adityaN Today
NeoQuant Yesterday

User Panel Messages

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