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,305
» Latest member: MOHAMMAD_mk
» Forum threads: 38,798
» Forum posts: 175,908

Full Statistics

Online Users
There are currently 45 online users.
» 0 Member(s) | 39 Guest(s)
Bing, Google, Facebook

Latest Threads
No new line from print in...
Forum: General Coding Help
Last Post: Pedroski55
1 hour ago
» Replies: 5
» Views: 178
Python Online Compiler
Forum: News and Discussions
Last Post: ichsanputr
3 hours ago
» Replies: 3
» Views: 11,088
Python is not working on ...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 10:44 AM
» Replies: 4
» Views: 178
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 04:44 AM
» Replies: 8
» Views: 699
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: mamta25
Nov-27-2025, 04:48 AM
» Replies: 6
» Views: 7,819
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Nov-26-2025, 09:58 PM
» Replies: 3
» Views: 169
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
Nov-26-2025, 03:53 PM
» Replies: 1
» Views: 147
My regex function is not ...
Forum: General Coding Help
Last Post: perfringo
Nov-26-2025, 08:47 AM
» Replies: 3
» Views: 231
best way to learn python
Forum: News and Discussions
Last Post: ichsanputr
Nov-26-2025, 04:40 AM
» Replies: 6
» Views: 3,224
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
Nov-25-2025, 02:50 AM
» Replies: 6
» Views: 337

 
  iterating through a number of files
Posted by: gonzo620 - Nov-21-2018, 09:56 PM - Forum: Homework - Replies (6)

My current code will list the total number of occurrences of the user input within all the files in the path. How can I edit the code to show me the o..... More

Print this item

  Help Loop new line
Posted by: jamshaid1997 - Nov-21-2018, 09:28 PM - Forum: General Coding Help - Replies (3)

every time I loop my program it starts off at the same line the issue is this loop
how can I implement

Quote:"\n"
the new line command into ..... More

Print this item

  is this bad documentation?
Posted by: Skaperen - Nov-21-2018, 08:23 PM - Forum: News and Discussions - Replies (2)

i can't get the documentation quoted here from the 3.5.2 PDF document. but reading the text at 2.4.2 String literal concatenation, it does not say th..... More

Print this item

  Huge black friday power supply sale at EVGA
Posted by: Larz60+ - Nov-21-2018, 08:06 PM - Forum: News and Discussions - No Replies

see: https://www.evga.com/articles/01268/20-s...psu-promo/
example 1600 watt 220-T2-1600-XI (reg $499): 149.99
this price only good as bun..... More

Print this item

  New to Python: Looking to run WMI/WMIC Commands from Python
Posted by: ForensicPython - Nov-21-2018, 07:28 PM - Forum: General Coding Help - Replies (3)

It would appear I need to import some modules in my Python script to accomplish this but so far no luck.

I also downloaded and installed a WMIC for..... More

Print this item

  Converting Angle to X and Y Values: 90/180/270 deg
Posted by: qrani - Nov-21-2018, 06:10 PM - Forum: General Coding Help - Replies (1)

So I have a way to turn an angle into x and y values:
[python]
angle = math.radians(0)
y = math.cos(angle)
x = math.sin(angle)
prin..... More

Print this item

  Selecting netcdf data files
Posted by: Jodman92 - Nov-21-2018, 05:43 PM - Forum: General Coding Help - Replies (4)

Hi there,

I'm trying to adapt some code I have been given for running climate simulations to work with Python3.7 on windows 10 using Anaconda (code w..... More

Print this item

  python 3 memoryview : unsupported format <d
Posted by: evason - Nov-21-2018, 04:27 PM - Forum: General Coding Help - No Replies

Hi, I have just made the change from python2.7 to python3.5.3.

I am having trouble with following lines of code which works in python2, but not 3:..... More

Print this item

  keras tensor mainpulation output to next input
Posted by: JohnyBeGood - Nov-21-2018, 03:30 PM - Forum: Data Science - No Replies

Hi,
Since 2 week, I try to merge a dense layer output to a LSTM input to create a kind of auto-feed ML (today forcast is add to tomorrow input)

th..... More

Print this item

  button not defined
Posted by: OldManProgrammer - Nov-21-2018, 03:20 PM - Forum: GUI - Replies (2)

Hello, I am brand new to Pyton. I am using 3.7.1 for windows.

I am getting an error (NameError: name 'button' not defined) from the statement be..... More

Print this item

  x_offset
Posted by: Graham - Nov-21-2018, 03:00 PM - Forum: Game Development - Replies (2)

Hi All,
I am just starting with Python/pygame and am playing around with shapes.
I am trying to get some lines on screen as below (not dotted)
----..... More

Print this item

  Debugging inside a thread with Python 2.3.4
Posted by: zerajera - Nov-21-2018, 01:43 PM - Forum: General Coding Help - No Replies

Hi,

I'm trying to add value to a piece of historic Python V2.3.4 script, this launches multiple threads that communicate with various serial instru..... More

Print this item

  DataFrame simple calculation
Posted by: SamSoftwareLtd - Nov-21-2018, 12:50 PM - Forum: General Coding Help - No Replies

Hi,

I'm unsure if this is a normal or strange result I'm getting in the below simple DataFrame contains 5 elements of floats stock prices, with the..... More

Print this item

  one code by python for platforms
Posted by: Aashuraa - Nov-21-2018, 11:27 AM - Forum: News and Discussions - Replies (7)

can we write one code to python and can execute on every platform like android ios web? ?

Print this item

  Python Scrapy ebay API
Posted by: Baggelhsk95 - Nov-21-2018, 11:22 AM - Forum: Web Scraping & Web Development - No Replies

Hi everyone....im wondering if somebody know how to connect the api from the ebay into scrapy to get calls,

i did this small code to make sure if t..... More

Print this item

  Adding new line in a one line txt file.
Posted by: Mady - Nov-21-2018, 11:04 AM - Forum: General Coding Help - Replies (7)

I converted a pdf to txt. It returned the file where the whole text is written in one line. In order to work with the file i need to add 2 new lines b..... More

Print this item

  split string and keep separator
Posted by: wardancer84 - Nov-21-2018, 10:42 AM - Forum: General Coding Help - Replies (2)

often discussed on the interwebs, but no i idiot-proof solution available.

i want to split the following list of strings by the "=" and keep the le..... More

Print this item

  Can't get button class to work
Posted by: mzmingle - Nov-21-2018, 10:39 AM - Forum: Game Development - Replies (3)

Hi - me again, haha!

I found a button class I understand - this one - but now I've en..... More

Print this item

  Classes and Methods
Posted by: thraxas - Nov-21-2018, 10:10 AM - Forum: Homework - Replies (8)

Hello everyone,

started this semester with programming in python, and now we have a task where i dont know how to program it.
We get an UML diagra..... More

Print this item

  one to many
Posted by: ifeatu - Nov-21-2018, 09:23 AM - Forum: Web Scraping & Web Development - Replies (2)

Good afternoon, I have been beating my head against a wall with an issue for 2 weeks and was hoping you can help...I'm trying to do a one-to-many rela..... More

Print this item

  Sorting lists prioritizing letters before numbers
Posted by: Ratherfastmofo - Nov-21-2018, 08:29 AM - Forum: General Coding Help - Replies (5)

Hi guys,

I'm a very new coder so your help means a lot.

I'm trying to sort a list which unsorted might look like this:

001 123
001 Beta 123..... More

Print this item

  CSV file dont open with code
Posted by: ayaz786amd - Nov-21-2018, 05:38 AM - Forum: Data Science - Replies (2)

i have put the following code in python shell and it working fine but not opening in pycharm
[python]import pandas as pd
import numpy as np

df = ..... More

Print this item

  XML parsing from URL
Posted by: mightyn00b - Nov-21-2018, 03:28 AM - Forum: Web Scraping & Web Development - Replies (5)

Hello I started my trek into Python a few days ago.

I am receiving the following error:
[quote]Please enter an XML URL to parse: http://py4e-data...... More

Print this item

  help for Kaggle Titanic Set fill the missing Age by median age of Pclass and Sex
Posted by: Parthasarathi009 - Nov-21-2018, 12:32 AM - Forum: General Coding Help - Replies (2)

Hello All,
I am new to python programming and I am trying to solve the Titanic data set from Kaggle for self-learning.
The columns of train_df are ..... More

Print this item

  what is your opinion of this syntactic sugar idea?
Posted by: Skaperen - Nov-21-2018, 12:19 AM - Forum: News and Discussions - Replies (8)

here is an idea that i sure wanted to code in tonight's project.

while doing some scanning i put some info into a dictionary. but there was one..... More

Print this item

  experimenting extracting (\ n) character
Posted by: hobbyprogrammer - Nov-20-2018, 11:54 PM - Forum: Code sharing - Replies (4)

I'm a beginner in python, Learning how to write small routines for a main program I'm working on,
I needed to find a way to eliminate the (\n ) char...... More

Print this item

  Finally switched to Linux Mint from OpenSuse Leap 15
Posted by: Larz60+ - Nov-20-2018, 11:39 PM - Forum: Bar - Replies (5)

Just thought I'd mention. I've been saying I was going to make the switch for several months now.
The process was smooth as silk. I added my laser pr..... More

Print this item

  How to reliably split string containing multiple sqlite statements?
Posted by: shanepy - Nov-20-2018, 11:30 PM - Forum: General Coding Help - Replies (2)

Hello,

Is there a way to reliably split a string containing multiple sqlite statements?

str.split(sep=None, maxsplit=-1) does not..... More

Print this item

  No reaction and no error message when clicking button
Posted by: Atalanttore - Nov-20-2018, 11:19 PM - Forum: GUI - Replies (4)

Hi

I have no idea why nothing happens after clicking on "Start Test" in the given Python 3 (PyQt5) code. There appears also no error message.

[b..... More

Print this item

  Wine / liquor dispenser project code issue
Posted by: onlinegill - Nov-20-2018, 10:41 PM - Forum: General Coding Help - No Replies

Hi i am working on a wine dispenser.i am using raspberry pi to turn on GPIO relay solenoids with hall flowmeter.
everything is working but when it com..... More

Print this item

  How to execute a string with multiple sqlite statements and print results?
Posted by: shanepy - Nov-20-2018, 10:19 PM - Forum: General Coding Help - No Replies

Hello,

How can a string with multiple sqlite statements be executed (for example "select * from tab1; select * from tab2") and print the results?
..... More

Print this item

  AttributeError: 'dict' object has no attribute 'is_active' (PyMongo And Flask)
Posted by: usman - Nov-20-2018, 09:50 PM - Forum: Web Scraping & Web Development - No Replies

[python]@app.route("/register", methods=['GET', 'POST'])
def register():
form = RegistrationForm()
if form.validate_on_submit():
u..... More

Print this item

  KeyError urllib
Posted by: DavidFernandez - Nov-20-2018, 09:01 PM - Forum: General Coding Help - Replies (4)

Hello,

I'm trying to run a command by url and I get the following error code: KeyError: "text"

Here is my python function
[python]with web.urlo..... More

Print this item

  Tips for CLI program with Keybinding system
Posted by: pedropessoa - Nov-20-2018, 08:03 PM - Forum: General Coding Help - Replies (2)

Hello.
I want to create a simple command line program that prints text in a screen according to a 1 or 2 keystroke sequence.

The basic structure ..... More

Print this item

  Need a Mentor
Posted by: jacksmith - Nov-20-2018, 07:21 PM - Forum: Jobs - Replies (1)

Actually, I am looking for a python developer and want to assign a mentor too on my website, if anyone is interested and want to become a python mento..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  No new line from print in... 1 hour ago Lou Pedroski55 General Codin...
  Python Online Compiler 3 hours ago alexmaxwell1 ichsanputr News and Disc...
  Python is not working on ... Yesterday, 10:44 lary_p noisefloor General Codin...
  Help with Serial.write in... Yesterday, 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...
  best way to learn python 11-26, 04:40 dutch ichsanputr News and Disc...
  data fetching for indian ... 11-25, 02:50 drakhsin Pedroski55 Web Scraping ...
  PyQt5 - Get a parameter f... 11-24, 14:18 Ninja2112 deanhystad GUI
Most views
  The best Prog... 579483
  Tutorial Requ... 512719
  Web Scraping ... 442347
  Newbie with P... 386393
  New Users Int... 381629
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 7391
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
MOHAMMAD_mk Today
virvainfotech Today
IFDA123 Yesterday
TimTom420 11-27
cruisesfares 11-27

User Panel Messages

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