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,420
» Latest member: SUMIATI
» Forum threads: 38,829
» Forum posts: 176,074

Full Statistics

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

Latest Threads
a function to watch files
Forum: News and Discussions
Last Post: Skaperen
4 hours ago
» Replies: 3
» Views: 731
python re.finditer return...
Forum: General Coding Help
Last Post: Pedroski55
7 hours ago
» Replies: 8
» Views: 483
If I open a file write or...
Forum: General Coding Help
Last Post: DeaD_EyE
7 hours ago
» Replies: 2
» Views: 45
Exponential Number Conver...
Forum: General Coding Help
Last Post: DeaD_EyE
Jan-09-2026, 08:47 PM
» Replies: 4
» Views: 437
Possible bug found, pleas...
Forum: General Coding Help
Last Post: alexajames
Jan-08-2026, 04:31 PM
» Replies: 14
» Views: 793
How to put my game loop i...
Forum: Game Development
Last Post: MarkHenry
Jan-08-2026, 12:47 PM
» Replies: 12
» Views: 7,739
Code failing to ask input...
Forum: Homework
Last Post: perfringo
Jan-08-2026, 06:35 AM
» Replies: 4
» Views: 714
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: OtiliaGen
Jan-07-2026, 07:13 AM
» Replies: 6
» Views: 1,020
Data Science
Forum: Data Science
Last Post: OtiliaGen
Jan-04-2026, 10:20 AM
» Replies: 4
» Views: 3,609
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
Jan-02-2026, 12:32 PM
» Replies: 29
» Views: 17,364

 
  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

  quiver plot scaling help
Posted by: StillAnotherDave - Oct-26-2020, 09:12 AM - Forum: Homework - Replies (1)

Hello all,

I have written some code to produce a contour plot (scalar field) and added a quiver plot (vector gradient) to display the gradient:
..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  a function to watch files 4 hours ago Skaperen Skaperen News and Disc...
  python re.finditer return... 7 hours ago arbiel Pedroski55 General Codin...
  If I open a file write or... 7 hours ago Pedroski55 DeaD_EyE General Codin...
  Exponential Number Conver... 01-09, 20:47 Tuurbo46 DeaD_EyE General Codin...
  Possible bug found, pleas... 01-08, 16:31 Hassher alexajames General Codin...
  How to put my game loop i... 01-08, 12:47 temlotresid6 MarkHenry Game Developm...
  Code failing to ask input... 01-08, 06:35 Phoenix_Narukami perfringo Homework
  sorting a lisr of file pa... 01-07, 07:13 Skaperen OtiliaGen News and Disc...
  Data Science 01-04, 10:20 Oshadha OtiliaGen Data Science
  Merge video with subtitle... 01-02, 12:32 Pavel_47 OtiliaGen General Codin...
  Check if running from she... 01-01, 11:52 rjdegraff42 noisefloor General Codin...
Most views
  The best Prog... 580727
  Tutorial Requ... 522119
  Web Scraping ... 442904
  New Users Int... 387974
  Newbie with P... 387127
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+ 12117
buran 8197
snippsat 7399
deanhystad 6921
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
SUMIATI Today
starboy25 Today
zabenjamitop8877 Yesterday
zanaaliepetrovz6060 Yesterday
F_S 01-09

User Panel Messages

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