Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 18,646
» Latest member: Sladja
» Forum threads: 37,394
» Forum posts: 169,940

Full Statistics

Online Users
There are currently 522 online users.
» 3 Member(s) | 514 Guest(s)
Google, Bing, Yandex, Apple, snippsat, manjureka, deanhystad

Latest Threads
how to edited Tkinter Top...
Forum: General Coding Help
Last Post: deanhystad
1 minute ago
» Replies: 7
» Views: 140
using mutable in function...
Forum: General Coding Help
Last Post: snippsat
7 minutes ago
» Replies: 1
» Views: 41
Good way to ignore case w...
Forum: General Coding Help
Last Post: Winfried
12 minutes ago
» Replies: 0
» Views: 13
i have not decided which ...
Forum: GUI
Last Post: cheeryconsist
1 hour ago
» Replies: 4
» Views: 337
Win or Loss Prediction
Forum: General Coding Help
Last Post: Pedroski55
2 hours ago
» Replies: 3
» Views: 108
Cucumber installation
Forum: General Coding Help
Last Post: SandraYokum
2 hours ago
» Replies: 2
» Views: 83
if else statements
Forum: General Coding Help
Last Post: DeaD_EyE
2 hours ago
» Replies: 8
» Views: 3,806
Pulsing notification icon
Forum: Board
Last Post: plaintivemiserly
6 hours ago
» Replies: 4
» Views: 1,168
watchdog on_modified
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 06:23 PM
» Replies: 3
» Views: 171
Volume label
Forum: Bar
Last Post: DPaul
Yesterday, 03:16 PM
» Replies: 3
» Views: 135

 
  Easy way to sort a nested dict
Posted by: Alfalfa - Dec-07-2018, 04:21 AM - Forum: General Coding Help - Replies (3)

I want to convert a dict of audio metadata into an ordered dict, sorted by it's nested values (such as values of keys 'artist' or 'track'). What would..... More

Print this item

  Working on my FOR loop
Posted by: wilsonrivas - Dec-06-2018, 11:18 PM - Forum: General Coding Help - Replies (1)

Hello friends!

Actually I'm a little new on phyton and I been working on a scrape file; in a part on code is like:

[python]
isver = paged_soup...... More

Print this item

  Python: Creating N Dimensional Grid
Posted by: jf451 - Dec-06-2018, 10:53 PM - Forum: General Coding Help - No Replies

Hello,
I am new to python, so I apologize in advance. I was wondering if anyone had any advice on how to solve the following problem:

https://sta..... More

Print this item

  Error in VS Code after installing
Posted by: raduf - Dec-06-2018, 09:18 PM - Forum: General Coding Help - Replies (2)

I'm starting to learn Python and I have just installed it on my laptop.

Python 3.7.1 -> D:/Python/Python37
VS Code -> D:/Microsoft VS Code

I h..... More

Print this item

  repeating for loop
Posted by: Kaldesyvon - Dec-06-2018, 07:23 PM - Forum: General Coding Help - Replies (5)

Hello guys,
Is there any command for repeating for cycle? I need to have done list of numbers that do not repeat...
[python]z=[]
for i in range(15)..... More

Print this item

  Python - Tkinter
Posted by: Ditrate40 - Dec-06-2018, 05:53 PM - Forum: GUI - Replies (10)

Hi, I'm doing Python with Tkinter.

So, I've a program :

[python]from tkinter import *

root = Tk()

def fonction(event):
print(event)
..... More

Print this item

  NameError: name '' is not defined
Posted by: archiejw - Dec-06-2018, 05:07 PM - Forum: General Coding Help - Replies (1)

Hi, I'm new to python. I've coded this to check whether an inputted name is between 3 and 10 letters and to ask the user whether they want to change i..... More

Print this item

  Is there in 2018 a python3 library that implements the Internet Printing Protocol?
Posted by: AFoeee - Dec-06-2018, 03:37 PM - Forum: Networking - Replies (1)

All python libraries that implement the Internet Printing Protocol (IPP) do not se..... More

Print this item

  Classes and Objects - question
Posted by: AI_ML_Neophyte - Dec-06-2018, 02:29 PM - Forum: General Coding Help - Replies (3)

Hi,

I'm teaching myself Python and am having trouble with Classes and Objects.

Please see below my Python Code.

I'm struggling to figure out ..... More

Print this item

  File pointers
Posted by: tjnichols - Dec-06-2018, 12:48 PM - Forum: Web Scraping & Web Development - Replies (2)

Good morning. I am getting an error telling me BeautifulSoup isn't installed. Yet, I've installed it several times. I'm stuck.

[python]import bs4 B..... More

Print this item

  Python's id() function output in prompt and script mode
Posted by: stormshadow - Dec-06-2018, 12:01 PM - Forum: General Coding Help - Replies (4)

In CPython it is agreed that id's (in effect addresses) of objects with values > 256 should be different.

When using the Python prompt in a termina..... More

Print this item

  what's wrong with the loop
Posted by: lielz - Dec-06-2018, 11:33 AM - Forum: Homework - Replies (1)

The question is "Write a program that repeatedly prompts a user for integer numbers until the user enters 'done'. Once 'done' is entered, print out th..... More

Print this item

  tkinter - unexpected output - don't know how func is triggered before calling
Posted by: omm - Dec-06-2018, 10:53 AM - Forum: GUI - Replies (8)

This is how my app looks like in the image below
[Image: 4jBdPFH]

WHAT I AM TRYING TO DO:
I am trying to create a desktop..... More

Print this item

  SSL Certificate Error when trying to do command-line registration with pypi
Posted by: DeliriousDelight - Dec-06-2018, 09:38 AM - Forum: Homework - No Replies

I am getting this error message when trying to do the command-line registration as per the Heads First Python book:

[icode]Macinbu:nester majibu$ p..... More

Print this item

  setting working directory in pycharm
Posted by: saisankalpj - Dec-06-2018, 09:29 AM - Forum: General Coding Help - Replies (10)

parent/
    one/
        __init__.py
        sample1.py
    two/
        __init__.py
        sample.py
When i run the code through ..... More

Print this item

  Autocorrelation:application of autocorrelation on several rows
Posted by: StevenZut - Dec-06-2018, 08:41 AM - Forum: Data Science - No Replies

I want to find the autocorrelation of a series of numbers with lag 1,2,...N

In this example I have 56 numbers and N = 20.

So I have a file with ..... More

Print this item

  Help coding the computers ship placements in battleships
Posted by: MAZambelli4353 - Dec-06-2018, 07:33 AM - Forum: General Coding Help - Replies (1)

Im trying to code random placements for the computer's ships into the 10x10 grid. The five ships are of lengths 2, 3, 3, 4, and 5. If you are unawar..... More

Print this item

  Brightening an image by changing pixel value (PIL image import) grok learning
Posted by: Turkejive - Dec-06-2018, 05:22 AM - Forum: Homework - Replies (2)

Hello again,
Currently I'm having an issue with an assignment where I must change the value of pixels to brighten an image.

Here is the full ques..... More

Print this item

  opening a file from a windows desktop folder- error opening file
Posted by: Charan007 - Dec-06-2018, 01:03 AM - Forum: General Coding Help - Replies (1)

Hi Team,

I am trying to open a file that is available in the desktop folder with the below command but getting an error
that file is not present...... More

Print this item

  mysql csv
Posted by: tsinapah - Dec-06-2018, 12:15 AM - Forum: General Coding Help - Replies (5)

[align=left]Hello,

First of all I am a total newbie as this are my first python coding...

I am trying to write a python script to extract data ..... More

Print this item

  ENV variable in Python
Posted by: anandoracledba - Dec-05-2018, 10:50 PM - Forum: General Coding Help - Replies (2)

I have this simple code:

[python]
#!/usr/bin/env python

import sys, re, os

NAS1=os.environ['NAS1']
print 'Value of NAS1: ' + NAS1

pwdfil..... More

Print this item

  Callback URL for twitter app
Posted by: Truman - Dec-05-2018, 09:53 PM - Forum: General Coding Help - Replies (5)

I'm trying to create my first twitter app and ran to a wall that is called a callback url/
on twitter website this is an explanation:
https://develope..... More

Print this item

  Not sure how to turn this into a loop
Posted by: iamgonge - Dec-05-2018, 09:37 PM - Forum: General Coding Help - Replies (1)

Im very new to python and am a bit stuck. I have some code. I have a variable called data that is json that I need to access. The problem is I get the..... More

Print this item

  from API to ip
Posted by: whatl0ol - Dec-05-2018, 09:11 PM - Forum: General Coding Help - Replies (12)

Hello, I have python webserver runnng flask.
I need python script
IP requests for json, go to API request for json receive it and send to IP

I d..... More

Print this item

  pyttsx3 cuts off when run from py file
Posted by: duelistjp - Dec-05-2018, 08:37 PM - Forum: General Coding Help - Replies (4)

i'm using pyttsx3 on a raspberry pi running raspbian which is debian linux to read out the current time and date. this is a simple test of the module..... More

Print this item

  Yahtzee poker game. Python3
Posted by: Newby - Dec-05-2018, 05:18 PM - Forum: Game Development - Replies (3)

Hi there. I am new in Python. A friend of mine offered me a challenge. SO am in.
Yahtzee is a poker game, but u also use 5 bones in it. Each member o..... More

Print this item

  Need help with a mock paper question
Posted by: MarkDervan - Dec-05-2018, 05:18 PM - Forum: Homework - Replies (4)

Q. Your friend has devised a game with two players. The two players,
called A and B, take turns rolling an ordinary six-sided die, with A being..... More

Print this item

  Exception Hanlding of Lists
Posted by: anelliaf - Dec-05-2018, 04:12 PM - Forum: General Coding Help - Replies (2)

Hello,

I'm writing a program that will list available databases to a user based on their tnsnames.ora and then allow them to make a connection to o..... More

Print this item

  setting pythonpath variable in environment variables
Posted by: saisankalpj - Dec-05-2018, 02:45 PM - Forum: General Coding Help - Replies (3)

parent/
    __init__.py
    one/
        __init__.py
        sample1.py
    two/
        __init__.py
        sample.py
  
I have a s..... More

Print this item

  Is there an iterable queue in python?
Posted by: AlekseyPython - Dec-05-2018, 01:34 PM - Forum: General Coding Help - Replies (3)

Python 3.7.1

I found queue class in the standard library. Unfort..... More

Print this item

  How recursion function is applied?
Posted by: dukoolsharma - Dec-05-2018, 11:50 AM - Forum: General Coding Help - Replies (2)

What is recursion function in python? can anyone explain it with example?

Print this item

  i have problems understanding 2 functions,look for help.
Posted by: Tony - Dec-05-2018, 10:20 AM - Forum: General Coding Help - Replies (2)

these 2 functions are

def print_end():
    print()

def nothing():
    "do nothing"
for the first function, what is meant by ..... More

Print this item

  Tweepy: download tweets of list of followers
Posted by: frexhs - Dec-05-2018, 08:42 AM - Forum: Homework - Replies (3)

Hi guys, I’m currently working on a term project surrounding the analysis of Twitter followers. For that, I’m using Tweepy and a ..... More

Print this item

  How read Table Structure from Database
Posted by: nnsatpute - Dec-05-2018, 08:08 AM - Forum: General Coding Help - Replies (5)

Hello,

I want to read the table description for particular table database and create the hive QL (HQL) statement
to create table in Hive using p..... More

Print this item

  I am getting a KeyError, after file save, My goal is to after changes save file
Posted by: ervijay587 - Dec-05-2018, 05:52 AM - Forum: General Coding Help - Replies (1)

This is my Code:
[python]
import openpyxl
from openpyxl import load_workbook

#load existing excel file from the storage
wb = load_workbook("tes..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  how to edited Tkinter Top... 1 minute ago kucingkembar deanhystad General Codin...
  using mutable in function... 7 minutes ago akbarza snippsat General Codin...
  Good way to ignore case w... 12 minutes ago Winfried Winfried General Codin...
  i have not decided which ... 1 hour ago Skaperen cheeryconsist GUI
  Win or Loss Prediction 2 hours ago ksasi2k3 Pedroski55 General Codin...
  Cucumber installation 2 hours ago SDS SandraYokum General Codin...
  if else statements 2 hours ago remy DeaD_EyE General Codin...
  Pulsing notification icon 6 hours ago menator01 plaintivemiserly Board
  watchdog on_modified Yesterday, 18:23 CAD79 deanhystad General Codin...
  Volume label Yesterday, 15:16 DPaul DPaul Bar
  Python Project Structure ... Yesterday, 12:21 b19wh33l5 b19wh33l5 General Codin...
Most views
  The best Prog... 411561
  Web Scraping ... 302598
  Tutorial Requ... 292461
  Newbie with P... 250711
  Thread remain... 232827
Most reputation
buran 582
snippsat 499
Larz60+ 452
Gribouillis 330
deanhystad 312
Most replies
  New Users Int... 431
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11871
buran 8090
snippsat 7087
deanhystad 6216
metulburr 5150
Top referrers
Googlepro 20
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
Sladja Today
Olja Today
cheeryconsist Today
FastCode Today
plaintivemiserly Today

User Panel Messages

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