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

Full Statistics

Online Users
There are currently 39 online users.
» 1 Member(s) | 34 Guest(s)
Bing, Google, AOL, AOL, Pedroski55

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

 
  Print Binary Tree - Python
Posted by: Daniel94 - Jan-08-2020, 09:41 PM - Forum: Homework - Replies (1)

[python]
def show_2d(self):
'''
Show a pretty 2D tree based on the output of bfs_order_star(). None
values are are replaced by stars (..... More

Print this item

  Homework
Posted by: Philippa - Jan-08-2020, 08:57 PM - Forum: Homework - Replies (5)

Please, how do i make my comparison case sensitive?
[python]
#program that simulates how websites ensure that everyone has a unique username .
cur..... More

Print this item

  How do I install Python 3.8.1 in a RHEL 8 UBI container?
Posted by: DevLinuxNC - Jan-08-2020, 08:46 PM - Forum: General Coding Help - Replies (1)

I want to type:

dnf -y install python
and have it install Python 3.8.1 on my RHEL 8.0 or 8.1 inside my minimal container that I..... More

Print this item

  TypeError: setText(self, str): too many arguments
Posted by: CabbageMan - Jan-08-2020, 08:28 PM - Forum: General Coding Help - Replies (3)

My code is meant to multiply a number with pi, but when I run it I get the error: TypeError: setText(self, str): too many arguments
[python]
def pi(..... More

Print this item

  Installing pefile from local folder
Posted by: KipCarter - Jan-08-2020, 07:49 PM - Forum: General Coding Help - Replies (4)

I'm relatively new to python code, but experienced in several others.

I'm trying to get PyInstaller up and going, stepping through the various depe..... More

Print this item

  Odd interpreter behavior
Posted by: sumncguy - Jan-08-2020, 06:24 PM - Forum: Homework - Replies (4)

Im posting this in Homework as I am taking a self paced course.

Im on a Centos 6 vm.
There is both python 2.7.5 and 3.7 loaded.
I am not sure ..... More

Print this item

  Code used to work, not anymore for no apparent reason?
Posted by: chicagoxjl - Jan-08-2020, 04:59 PM - Forum: General Coding Help - Replies (1)

Hello,

I am taking Microsoft Professional Program for Artificial Intelligence. This block of code used to work fine. After I tried to insert some n..... More

Print this item

  Difference between R^2 and .score
Posted by: donnertrud - Jan-08-2020, 04:23 PM - Forum: Data Science - Replies (1)

Hi guys,

As far as I know you can calculate the accuracy of a regression model with sklearn LinearRegression
The code would be something like this..... More

Print this item

  simple if elif conditions in Python
Posted by: Chandan - Jan-08-2020, 02:00 PM - Forum: General Coding Help - Replies (2)

Hi There,
I am very much new to Python and to this forum. I am looking for code help.
I have a SAS code as below and I would like to replicate this ..... More

Print this item

  Heeelp! I'm stuck... Girl is freakin' here :(
Posted by: jenny17 - Jan-08-2020, 01:04 PM - Forum: General Coding Help - Replies (3)

I would like to accomplish the following using Python Lambda function:

- Pull subscription ID from the folder within in the S3 bucket
- Query the..... More

Print this item

  TypeError: list indices must be integers or slices, not str
Posted by: guilla25 - Jan-08-2020, 10:37 AM - Forum: General Coding Help - Replies (1)

Hello,

I have the folllowing json data and would like to read values. for example all "yawLeftForearm". These data correspond to 10 measures in one..... More

Print this item

  I am a newbie.Help me with this simple piece of code
Posted by: feynarun - Jan-08-2020, 09:27 AM - Forum: General Coding Help - Replies (3)

I was watching this complete Python Tutorial by Mosh Hamadani on youtube.
I saw a small piece of code that he wrote and I wrote it in pycharm.
I got..... More

Print this item

  REPL
Posted by: grkiran2011 - Jan-08-2020, 08:34 AM - Forum: General Coding Help - Replies (1)

Hi,

The Python REPL is it an interpreter or a compiler?

When I have a file, let's say test.py and when I type, python test.py at the command pr..... More

Print this item

  C code to python
Posted by: jhapradeep88 - Jan-08-2020, 08:00 AM - Forum: General Coding Help - Replies (7)

[python]

#include<stdio.h>
#include<stdlib.h>

#define K 2
#define N 8
#define G 64
int sigA1=0,sigA2=0,sigB1=0,sigB2=0,tauA=0,tauB=0;
typed..... More

Print this item

  I want to filter out words with one letter in a string (pig latin translator)
Posted by: po0te - Jan-08-2020, 07:29 AM - Forum: General Coding Help - Replies (1)

How to create a function to ignore words with one letter in a string? I am trying to make a pig latin translator that can translate sentences but leav..... More

Print this item

  which is the best library to create a simple web browser?
Posted by: vivekagrey - Jan-08-2020, 07:06 AM - Forum: GUI - Replies (3)

Is tkinter good for this task?
I am making a gui on tkinter and I want to display a google map in it which displays some coordinates sent to it by gp..... More

Print this item

  need help on solving and movement
Posted by: Tankey2630 - Jan-08-2020, 06:36 AM - Forum: General Coding Help - Replies (1)

hi guys, I hope you guys can give me some advice, even if you can this point me in a direction, please.
the folwing is for a conveyor system that I a..... More

Print this item

  New Version Problem
Posted by: SamIam - Jan-08-2020, 12:58 AM - Forum: General Coding Help - Replies (5)

Want to find a way to move all modules from old version of python to new version without have install all again.

Thanks in advance Smile

Print this item

  SAP Business Objects Query SQL
Posted by: AsaithambiThiyagarajan - Jan-08-2020, 12:11 AM - Forum: General Coding Help - No Replies

How to get the SQL query information which is generated by SAP Business Object Report, using Python?

Number of Columns used in SELECT statement.
N..... More

Print this item

  Join table with differnt datype column using python query
Posted by: abhishek6555 - Jan-07-2020, 10:37 PM - Forum: General Coding Help - Replies (1)

If I have an order table with Yearmonth in yyyymm format and datatype of the column is int.
And in another order archive table the Yearmonth is yyyym..... More

Print this item

  Is there a method to completely uninstall on macOS?
Posted by: mjcsb - Jan-07-2020, 10:19 PM - Forum: News and Discussions - Replies (2)

I'm doing a clean install of macOS Mojave on my MacBook Pro, and recently downloaded the latest version of the Python installer 3.8.1, then double cli..... More

Print this item

  Tkinter exception if entries are not filled up
Posted by: Reldaing - Jan-07-2020, 10:15 PM - Forum: GUI - Replies (6)

Hi, he're my request: I want that if all the entries are not filled , the button stays disabled and if not, the button enables. I tried to but I didn'..... More

Print this item

  Generate simple melodic line from code
Posted by: QuarterMissiv - Jan-07-2020, 08:34 PM - Forum: General Coding Help - Replies (7)

Could anyone recommend where I could learn how to code and play a sound in Python.

For example, a variable holds a number. When run, that number is p..... More

Print this item

  handling open failures
Posted by: Skaperen - Jan-07-2020, 08:33 PM - Forum: News and Discussions - Replies (2)

do all open() failures always cause an exception in the open() call and never just return a None or so..... More

Print this item

  GUI problems
Posted by: Krisve94 - Jan-07-2020, 06:55 PM - Forum: GUI - Replies (2)

Hi, I have searched for this problem for a while now, and I cannot find an answer anywhere.
I am creating a GUI for personal use playing DnD just to ..... More

Print this item

  Can't install ZIP with PIP.
Posted by: Snake - Jan-07-2020, 06:21 PM - Forum: General Coding Help - Replies (4)

I need to install zip: pip install zip (Python3). I tried though conda and virtualenv.
I'm getting an error:
[output] Using..... More

Print this item

  Fun Poll: What should we call a group of data scientists?
Posted by: keaton8630 - Jan-07-2020, 04:15 PM - Forum: Bar - Replies (3)

For all you data scientists (or anyone really) found a poll trying to decide what a group of data scientist should be called. Think murder of crows, _..... More

Print this item

  Queue in Pygame
Posted by: constantin01 - Jan-07-2020, 02:45 PM - Forum: General Coding Help - Replies (1)

Hi

I work on audio player, I use Tkinter for GUI and Pygame for media.

I would like to make a playlist of songs and to play them with pygame.mi..... More

Print this item

  search and read file given partial file
Posted by: SriRajesh - Jan-07-2020, 01:37 PM - Forum: General Coding Help - Replies (2)

Hi,
I want to read file given a partial file name:

[python]import glob
my_dir = 'D:\PythonCodes'
#post_fix = ['\InputFiles\KYLJHQ_20191215\sub_f..... More

Print this item

  Composition question
Posted by: kerzol81 - Jan-07-2020, 10:00 AM - Forum: General Coding Help - Replies (3)

Hi, I'm testing composition, and I don't understand the output in the log file.

Here is the script:

[python]import os
import time
import logg..... More

Print this item

  A simple error
Posted by: GFreenD - Jan-07-2020, 09:38 AM - Forum: Homework - Replies (2)

Hey can someone guide me to right direction as ive stumbled upon what it seems to be a simple error but cant understand what is wrong or missing somet..... More

Print this item

  Remove function and unit test
Posted by: ftg - Jan-07-2020, 09:28 AM - Forum: General Coding Help - Replies (5)

Hello everyone,

let's say I want to create a 'utils' package with several functions
working on files and folders. I want to do it once properly so..... More

Print this item

  ending process
Posted by: hrparra - Jan-07-2020, 04:22 AM - Forum: General Coding Help - Replies (1)

I started a process on anaconda in iOS and it stocked there, I tried Control C but seems that does not work and i can not go forward.

Would be so ..... More

Print this item

  def search_for_vowels():
Posted by: Dixon - Jan-06-2020, 11:27 PM - Forum: General Coding Help - Replies (6)

[python]def search4vowels(word):
vowels = set('aeiou')
found = vowels.intersection(set(word))
for vowel in found:
print(vowel)..... More

Print this item

  Python function executes twice when region loop is present
Posted by: bluethundr - Jan-06-2020, 09:21 PM - Forum: General Coding Help - Replies (2)

This function lists all the instances in an AWS account. It does that for each region.
For some reason I end up with the total number of instances re..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Parse Markdown / get the ... 3 hours ago SpongeB0B Pedroski55 General Codin...
  Error: cannot mix str wit... Yesterday, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... 09-30, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... 09-30, 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... 577451
  Tutorial Requ... 501068
  Web Scraping ... 441079
  Newbie with P... 385149
  New Users Int... 369752
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 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
kyleconor797 Yesterday
miriamwilliam Yesterday
Davidkiplimo Yesterday
Joliekeva Yesterday
silversimon2 09-30

User Panel Messages

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