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,954
» Latest member: Perry
» Forum threads: 38,727
» Forum posts: 175,523

Full Statistics

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

Latest Threads
Is the interpreter that c...
Forum: General Coding Help
Last Post: helendamdam
16 minutes ago
» Replies: 0
» Views: 293
extracting data from a us...
Forum: General Coding Help
Last Post: Perry
36 minutes ago
» Replies: 0
» Views: 17
how to export a dictionar...
Forum: GUI
Last Post: Pedroski55
2 hours ago
» Replies: 1
» Views: 83
pip install requests does...
Forum: General Coding Help
Last Post: DeaD_EyE
10 hours ago
» Replies: 10
» Views: 29,295
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: Pedroski55
Sep-23-2025, 12:00 PM
» Replies: 4
» Views: 9,375
IBKR Purchasing code issu...
Forum: General Coding Help
Last Post: compuman145
Sep-23-2025, 09:08 AM
» Replies: 0
» Views: 248
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
Sep-23-2025, 03:29 AM
» Replies: 2
» Views: 690
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
Sep-22-2025, 08:56 PM
» Replies: 9
» Views: 874
403 error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 5,135
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 1,357

 
  download file from url
Posted by: fernandosianet - Oct-27-2020, 05:42 PM - Forum: General Coding Help - Replies (3)

Hi folks

I know how to download with the direct link, but we always have updates.

[python]

import requests

print ('Download')

url = 'ht..... More

Print this item

  Coding using class
Posted by: gambit420 - Oct-27-2020, 03:51 PM - Forum: General Coding Help - Replies (2)

[python]
#!/usr/bin/python3

class Parent:
def _init_(self,x):
self.x=x

def count(self,x):
self.x = self.x + 1

cla..... More

Print this item

  Removing some elements from array based on a condition
Posted by: claw91 - Oct-27-2020, 03:42 PM - Forum: General Coding Help - No Replies

Hi, I have this matlab code

A(A> numel(B)) = [ ];

where A and B are two arrays.

T..... More

Print this item

  Swap key and value of a dictionary - and sort it
Posted by: Omid - Oct-27-2020, 03:24 PM - Forum: General Coding Help - Replies (4)

Hello,

The input is this:

[output]
{'Accurate': ['exact', 'precise'], 'exact': ['precise'], 'astute': ['Smart', 'clever'], 'smart': ['clever', ..... More

Print this item

  How to capitalize in dictionary
Posted by: Inkanus - Oct-27-2020, 03:00 PM - Forum: General Coding Help - Replies (2)

Hi everyone. I ran into a problem. I would like words in the dictionary that are written in lowercase to be displayed in uppercase. I thought I found ..... More

Print this item

  [PyGTK] Creating Book Table
Posted by: ramazanemreosmanoglu - Oct-27-2020, 02:56 PM - Forum: GUI - Replies (3)

Hello;

I writed this codes for creating book table:

[python]

import os
import gi

def get_all_books():
"""
Structure:

..... More

Print this item

  converting py to exe
Posted by: Barkin - Oct-27-2020, 02:38 PM - Forum: General Coding Help - Replies (7)

Hello everyone,
I'm new here. I am a beginner. i wrote a program on python and i'd like to convert it to .exe but I get an error. Below is the error ..... More

Print this item

  Entry Validation in tkinter
Posted by: shahulvk - Oct-27-2020, 02:05 PM - Forum: GUI - Replies (4)

[b]Hi there..

I want to know how the inputs to an entry widget in tkinter is validated so as to accommodate only digits 0-20. This widget is goin..... More

Print this item

  From Matlab to Python
Posted by: erbab - Oct-27-2020, 01:11 PM - Forum: General Coding Help - Replies (1)

Hi all!

I am working on a sound classification project. I have written codes in Matlab, but I need to convert it into Python to use with Raspberry ..... More

Print this item

  Install pdftables-api
Posted by: MagicTrees - Oct-27-2020, 01:01 PM - Forum: General Coding Help - Replies (13)

Hi

I am a new users of python and I am trying to install the packages from the pdftables-api but it doesn't work.

It mentioned in the website t..... More

Print this item

  Making a dictionary from a file
Posted by: instyabam - Oct-27-2020, 11:59 AM - Forum: Homework - No Replies

problem fixed

Print this item

  Python development envirornment
Posted by: flaviu2 - Oct-27-2020, 09:29 AM - Forum: General Coding Help - Replies (3)

Hi all.
I am using VS2017 as Python development environment. But I don't have here any intellisense and my work goes slow due that.

For instance, ..... More

Print this item

  finding element of specific field in pandas adjacency matrix
Posted by: amjass12 - Oct-27-2020, 09:27 AM - Forum: General Coding Help - No Replies

Hi!

I have a pandas adjacency dataframe where I need to be able to identify any element on that dataframe by its physical numbered position, not inde..... More

Print this item

  multiprocess hang when certain number is used in the program
Posted by: esphi - Oct-27-2020, 08:43 AM - Forum: General Coding Help - Replies (7)

Hi, I am a python beginner, I am starting to learn multiprocessing. I have created this program to simply calculate the squares of a big list of numbe..... More

Print this item

  Where to start
Posted by: 7even - Oct-27-2020, 07:56 AM - Forum: News and Discussions - Replies (2)

Hello everyone?
I'm new to this forum and I need some advices and great tutorial that can make me feel comfortable with python Rolleyes

Print this item

  FPDF question
Posted by: DPaul - Oct-27-2020, 07:43 AM - Forum: General Coding Help - Replies (2)

I have an app that generates pdfs, i use it on a regular basis, using FPDF.
It works fine, thank you.

Recently I did a version 2, the big differen..... More

Print this item

Smile Question about deserializing some numbers (bug??)
Posted by: hyoxt121 - Oct-27-2020, 06:29 AM - Forum: Data Science - Replies (3)

Hi! In order to deserialize bytes object, we use pickle.loads():

import pickle
import numpy as np
pickle.loads(np.float64(0.34103))

and the ex..... More

Print this item

  deprecated
Posted by: maly - Oct-27-2020, 02:58 AM - Forum: Data Science - No Replies

Good day,
I am trying to solve the next lab ..... More

Print this item

  should I uninstall anaconda?
Posted by: abrogard - Oct-27-2020, 01:30 AM - Forum: News and Discussions - No Replies

I am trying to get going with Python. I did the Anaconda install and since then it's been nothing but difficulties.

Now there's another one. I..... More

Print this item

  33*25.4
Posted by: schascheck - Oct-27-2020, 12:45 AM - Forum: General Coding Help - Replies (5)

Hello,

I was using the IDLE today and typed in 33*25.4 and it evaluated to 838.1999999999999

I also tried the Python web shell and it gave me th..... More

Print this item

Photo Setting Marker Edge Color In Plotting
Posted by: JoeDainton123 - Oct-26-2020, 10:48 PM - Forum: General Coding Help - No Replies

Hello all

I was hoping someone could help me fill in my gaps in my understanding regarding Python Plotting via matplotlib and the Python documentat..... More

Print this item

  So simple yet not working....
Posted by: giladal - Oct-26-2020, 10:19 PM - Forum: General Coding Help - Replies (13)

Hi Guys.

I am trying to remove the letter F or C or f or c from the string and then print it.

Here is the code, and for the love of god, I don't..... More

Print this item

  python compiling and sql?
Posted by: abrogard - Oct-26-2020, 10:18 PM - Forum: News and Discussions - Replies (2)

I am just about to start using Python to learn some programming and before I start I just wonder about portability of anything I may write (which won'..... More

Print this item

  Python broken if moved to a different folder
Posted by: ecastrotns - Oct-26-2020, 10:06 PM - Forum: General Coding Help - Replies (3)

Hi,

I'm building a installer to redistribute inside my company Scons with some special tools developed in-house. The idea is to have an environment..... More

Print this item

  rounding and floats
Posted by: Than999 - Oct-26-2020, 09:08 PM - Forum: General Coding Help - Replies (2)

Hi, I don't understand why 10/3 the answer is 3 and 10.0/3.0 is 3.3333? Can anyone explain this to me? Thanks!

Print this item

  random library
Posted by: FedeZsuper - Oct-26-2020, 06:09 PM - Forum: General Coding Help - Replies (3)

This is my code:

[python=import random

print('''
Benvenuto al programma: 'Carta Forbice Sasso'

Creato da: Federico Oblatore
''')

scelta ..... More

Print this item

  How to get rid of numerical tokens in output (webscraping issue)?
Posted by: jps2020 - Oct-26-2020, 05:37 PM - Forum: Web Scraping & Web Development - No Replies

I'm working my way through an excellent webscraping tutorial, and I'm on Lesson 10 here:

https://programminghistorian.org/en/less...nting-freq..... More

Print this item

  Making lists using itertools and eliminating duplicates.
Posted by: mike3891 - Oct-26-2020, 04:29 PM - Forum: General Coding Help - Replies (2)

I'm trying to get all combinations of the following numbers as long as they don't total over 50,000 and must be in combos of 6. From there I want to c..... More

Print this item

  lists as arguments
Posted by: vinci - Oct-26-2020, 04:20 PM - Forum: General Coding Help - Replies (2)

Another stupidly simply question, but I have to ask anyway: why do some functions expect their arguments to be what I assume to be lists (square brack..... More

Print this item

  youtube-dl taken down from Github after RIAA notice
Posted by: snippsat - Oct-26-2020, 04:00 PM - Forum: News and Discussions - Replies (7)

So did just notice that youtube-dl was gone.
Have used it in several project trough the years,both in GUI and web(Flask).

For those who not know w..... More

Print this item

  Working With Pdf
Posted by: Harshil - Oct-26-2020, 02:50 PM - Forum: GUI - Replies (3)

Hey! I Found That Qt Has a QPDFview And QPDFDocument but they are in c++.

Is There a way to use them in python?

Print this item

  Alternative for Cairosvg?
Posted by: Maryan - Oct-26-2020, 01:27 PM - Forum: General Coding Help - No Replies

Hi! I'm trying to convert the result output from .SVG(pygal) to .PNG, but seem I have errors while using cairo. Any alternative to cairo? Thank you!
..... More

Print this item

  Selenium Python for Dropdown not working
Posted by: gj31980 - Oct-26-2020, 12:21 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi All,

We have an internal dynamics CRM page that we are trying to download data from using Selenium. Unfortunately when I get into the second win..... More

Print this item

  how can i create a dictionary of dictionaries from a file
Posted by: Astone - Oct-26-2020, 11:31 AM - Forum: Homework - Replies (2)

So i need to create this dictionary(dictionary of dictionaries):

my_dict={'1':{'surname':'Musk', 'name':'Elon', 'gender': 'm','growth':183},
..... More

Print this item

  Parameters aren't seen inside function
Posted by: Sancho_Pansa - Oct-26-2020, 10:31 AM - Forum: General Coding Help - Replies (8)

Hello,

The question is related to the use of the Lcapy library (circuit analysis).
The 1st version of the Vin declaration (which is comment..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Is the interpreter that c... 16 minutes ago helendamdam helendamdam General Codin...
  extracting data from a us... 36 minutes ago Perry Perry General Codin...
  [Tkinter] how to export a... 2 hours ago RonR Pedroski55 GUI
  pip install requests does... 10 hours ago misodca DeaD_EyE General Codin...
  Creating a Mindmap progra... 09-23, 12:00 J_Miller Pedroski55 General Codin...
  IBKR Purchasing code issu... 09-23, 09:08 compuman145 compuman145 General Codin...
  A coding beginner needs h... 09-23, 03:29 Littlefish Littlefish General Codin...
  Using a For Loop to subtr... 09-22, 20:56 Anunderling deanhystad General Codin...
  403 error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
Most views
  The best Prog... 576828
  Tutorial Requ... 499258
  Web Scraping ... 440614
  Newbie with P... 384589
  New Users Int... 368495
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+ 12088
buran 8176
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Perry Today
bianchiluca116 Yesterday
Jorgecog Yesterday
adamsmith12 Yesterday
Ronny Yesterday

User Panel Messages

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