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,310
» Latest member: QABOB
» Forum threads: 38,801
» Forum posts: 175,920

Full Statistics

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

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

 
  Slicing a complex dictionary and list
Posted by: Drone4four - Aug-16-2018, 01:40 PM - Forum: General Coding Help - Replies (2)

I’m trying to test my understanding of indexing and key calls.

I’ve got a variable which is a combination of two dictionaries and four lists. It’s..... More

Print this item

  VS Code from start
Posted by: snippsat - Aug-16-2018, 01:34 PM - Forum: Tutorials - Replies (2)

This will be about VS Code.
Will take if start,so get Python up running with some advice that make it easy ..... More

Print this item

  Printing a new python list
Posted by: abdallah786 - Aug-16-2018, 01:04 PM - Forum: General Coding Help - Replies (3)

list = 100
if list > 99:
print(list=list(range(100,500))



why wont this work? can you help fix this?

Print this item

  Counting number of characters in a string
Posted by: Drone4four - Aug-16-2018, 12:52 PM - Forum: General Coding Help - Replies (1)

I’m trying to count the number of words that exist in the last line of a small text file.

Here is my text file:[quote]Welcome to your First Tribula..... More

Print this item

  Convert Column To Time
Posted by: Talch - Aug-16-2018, 11:46 AM - Forum: General Coding Help - Replies (1)

Hi All,

Am a newbie in python looking for some help.

I have imported a csv with my data and one of the columns has a date time stamp. As a dataf..... More

Print this item

  Unique Count
Posted by: Talch - Aug-16-2018, 11:15 AM - Forum: Homework - No Replies

Good afternoon All,

A bit of a newbie in python, so looking for a bit of help with a unique count problem.

I am using the following code on a da..... More

Print this item

  fail to upgrade pygobject
Posted by: jiapei100 - Aug-16-2018, 10:32 AM - Forum: General Coding Help - No Replies

Failed to update pygobject , with the following ERROR message:

[error]Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/p..... More

Print this item

  I think this is a problem with returning? maby?
Posted by: TheNumericDolfin - Aug-16-2018, 10:21 AM - Forum: General Coding Help - Replies (8)

[python]
import Button
import Menues
import pygame
import sys
from pygame.locals import *
x = 0
y = 30
import os
os.environ['SDL_VIDEO_WINDOW..... More

Print this item

  lists in list
Posted by: kubine - Aug-16-2018, 10:12 AM - Forum: General Coding Help - Replies (1)

hi I make a list in list and append in [0] index a value. but it appends in all index. can andybody know why?
code:
[python]matrix=[[1]]*3
print(ma..... More

Print this item

  Videogrep .VTT problem win Windows 10
Posted by: MM2018 - Aug-16-2018, 10:09 AM - Forum: Bar - Replies (1)

https://github.com/antiboredom/videogrep
I am using Win10, python 3.70, everything installed fine, but I got this, problem.
already .srt or .vtt sub..... More

Print this item

  compiling python using pyinstaller
Posted by: sabeesh90 - Aug-16-2018, 09:58 AM - Forum: General Coding Help - No Replies

hi. I have written a code to create a GUI to print barcodes. but when I try compiling it on the command prompt using pyinstaller I get this error. ple..... More

Print this item

  string to date time- suggestion required
Posted by: anna - Aug-16-2018, 09:42 AM - Forum: General Coding Help - Replies (4)

Hi All,

I am getting time as in this format '20180801194918.0', I want convert this to date time format.

below in the my code, but need suggesti..... More

Print this item

  under water pool lights
Posted by: Skaperen - Aug-16-2018, 06:57 AM - Forum: Bar - Replies (3)

i bought 3 of these LED multi color remote control pool lights to use on my brother's pool. the lights he has now are under water. do i have to drai..... More

Print this item

  converting int to any base
Posted by: Skaperen - Aug-16-2018, 05:28 AM - Forum: General Coding Help - Replies (3)

i would like to know in there is a way to convert an int to a string of digit, with a specified minimum width and a specified leading character (if th..... More

Print this item

  how to print UTF-8
Posted by: Skaperen - Aug-16-2018, 04:51 AM - Forum: General Coding Help - Replies (5)

my string is already in UTF-8 form. that is, 1 to 6 byte codes (octets) in sequence per character and the codes are in range(256) (could have been in..... More

Print this item

  Split string
Posted by: hext01 - Aug-16-2018, 03:29 AM - Forum: Data Science - Replies (3)

Hello! First post!

I'm super new to python and I'm having the hardest time trying to split this below output:

I want:

Label Date Value Close..... More

Print this item

  Printing lines in a basic text file
Posted by: Drone4four - Aug-16-2018, 12:08 AM - Forum: General Coding Help - Replies (6)

I’ve got a basic text file. I am trying to print the 5th line (total 7 lines).

Here is my text file:
[quote]Welcome to your First Tribulation Rec..... More

Print this item

  Python version 2
Posted by: Skaperen - Aug-15-2018, 11:36 PM - Forum: Bar - No Replies

i am sooo ready for the day i can tell people that Python2 is End Of Life. soon, but not soon enough.

Print this item

  Make one thing act like another
Posted by: Zman350x - Aug-15-2018, 11:24 PM - Forum: General Coding Help - Replies (2)

I have a long list of 750 single digit numbers.

WorldList = [0,0,3,7,3,2...]
I use the variable valIndex plus a number to call ..... More

Print this item

  variable args + named options
Posted by: Skaperen - Aug-15-2018, 11:14 PM - Forum: News and Discussions - No Replies

def foo(*varargs,bar=256):
    ...
    ...
    return bar
this is OK in Python3 but not in Python2. apparently, Python2 requir..... More

Print this item

  Intro to Python for Data Science with Datacamp
Posted by: Sabrusura - Aug-15-2018, 10:55 PM - Forum: Homework - Replies (4)

Hi all,

I am currently following the course Intro to Python for Data Science with Datacamp.com. It is pretty challenging for me as someone who does..... More

Print this item

  function to handle exception errors
Posted by: atlass218 - Aug-15-2018, 10:20 PM - Forum: GUI - Replies (5)

Hello;
I created an application with "TKINTER" which works well today according to my weak knowledge since I am a beginner with the PYTHON language ..... More

Print this item

  go_to() missing 1 required positional argument: 'url'
Posted by: HMAeymo - Aug-15-2018, 07:55 PM - Forum: General Coding Help - Replies (1)

[img]https://scontent.ffjr1-1.fna.fbcdn.net/v/t1.0-9/39193552_525328034562351_519385636281516032_n.jpg?_nc_fx=ffjr1-1&_nc_cat=0&oh=55b8766b3adabf28769..... More

Print this item

  Help with GUI and MVC pattern
Posted by: giu88 - Aug-15-2018, 07:40 PM - Forum: GUI - Replies (1)

Hello,

I need some help understanding the MVC pattern, i am using python. As i understood by reading around, there are two ways to implement this. ..... More

Print this item

  Protecting Python
Posted by: Anysja - Aug-15-2018, 05:39 PM - Forum: General Coding Help - Replies (6)

How do you all go about protecting your python programs? If I were to send an executable to someone, how do you prevent them from redistributing it to..... More

Print this item

  Help creating a class instance dynamically
Posted by: Kotevski - Aug-15-2018, 05:09 PM - Forum: General Coding Help - Replies (9)

Hey folks,

I've been trying to dump the contents of my google drive sheet into class instances. My understanding of classes and object oriented pro..... More

Print this item

  Mission Impossible : New to Python and 3 days to do theses exercises
Posted by: Kangaaxx - Aug-15-2018, 03:52 PM - Forum: Homework - Replies (6)

Hi started to learn Python yesterday( never coding before, this is for a professional reconversion).
I am currently learning on "Codecademy" and i ha..... More

Print this item

  class has no idea what i am talking about, and i have no idea how to give it the info
Posted by: TheNumericDolfin - Aug-15-2018, 03:40 PM - Forum: Game Development - Replies (3)

i have two py files. her they are:

[python]import pygame


class button:
def __init__(self):
pygame.draw.rect(screen, 10, 10, 10, ..... More

Print this item

  GUI for cx_freeze
Posted by: Axel_Erfurt - Aug-15-2018, 03:31 PM - Forum: Code sharing - No Replies

Made for Linux.
On other OS you need to change some paths and "xdg-open" (Line 160) to the right command.

[img]https://user-images.githubuserconte..... More

Print this item

  Help with string practice
Posted by: Hermann_Fegelein - Aug-15-2018, 02:36 PM - Forum: General Coding Help - Replies (2)

Hi everyone,
I'm looking for some help with an exercise I was doing, regarding strings in python.
This program is supposed to find the longest word..... More

Print this item

  how to click javascript button
Posted by: hcyeap - Aug-15-2018, 01:42 PM - Forum: Web Scraping & Web Development - Replies (3)

Hi there,

I am trying to automate to login a page.

i am following the example here:
https://stackoverflow.com/questions/4162...k-javascri..... More

Print this item

  [Help] List of Lists not printing both Cmder/Anaconda?
Posted by: vanicci - Aug-15-2018, 12:55 PM - Forum: General Coding Help - Replies (4)

Hi Python mentors,

I tried running this code:

[python]
import random

M = 'land'
o = 'water'
h = 11 #number of rows
w = 11 #number of colu..... More

Print this item

  Hang man game
Posted by: supermane - Aug-15-2018, 08:51 AM - Forum: General Coding Help - Replies (2)

Hi, beginner here.
Doing a hangman game and i am stuck because when i run my function guess_me, the return value is always new. how am i able to stor..... More

Print this item

  Optimising processing speed
Posted by: Owen - Aug-15-2018, 08:15 AM - Forum: Code sharing - Replies (1)

Hi
I have an HP computer with 24 cores and 48 processors. Part of my work entails creating large tile packages. When I use the ArcGIS tools in Deskto..... More

Print this item

  is this character printable?
Posted by: Skaperen - Aug-15-2018, 05:34 AM - Forum: News and Discussions - Replies (2)

is this character printable?

i found a place where Python is making this decision, probably from a Unicode database. the repr() function, w..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  No new line from print in... 6 hours ago Lou Pedroski55 General Codin...
  Python compiler Yesterday, 20:01 NeoQuant NeoQuant 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... 579499
  Tutorial Requ... 512879
  Web Scraping ... 442371
  Newbie with P... 386398
  New Users Int... 381744
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 7393
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
QABOB Today
adityaN Today
NeoQuant Yesterday
Hosthubac Yesterday
ifdainstitute7 Yesterday

User Panel Messages

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