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,271
» Latest member: aminrony1999
» Forum threads: 38,787
» Forum posts: 175,856

Full Statistics

Online Users
There are currently 26 online users.
» 0 Member(s) | 21 Guest(s)
Bing, Applebot, Mojeek, Google

Latest Threads
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
1 hour ago
» Replies: 3
» Views: 148
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
Yesterday, 11:47 AM
» Replies: 4
» Views: 149
PermissionError: [Errno 1...
Forum: GUI
Last Post: Tuurbo46
Yesterday, 08:44 AM
» Replies: 2
» Views: 117
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Nov-15-2025, 04:07 PM
» Replies: 2
» Views: 160
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Nov-15-2025, 01:00 PM
» Replies: 5
» Views: 346
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 66
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Nov-14-2025, 06:38 PM
» Replies: 0
» Views: 109
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 353
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 202
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 313

 
  Python Books - Recommendation
Posted by: lasek723 - Oct-28-2020, 07:12 PM - Forum: News and Discussions - Replies (5)

Hi all,

I am 6 weeks into my Python journey. I like it. I have been using DataCamp.

Whilst I wait until they have a black Friday offer on, I am loo..... More

Print this item

  How do i make a new lists out of an list
Posted by: ozezn1 - Oct-28-2020, 06:39 PM - Forum: General Coding Help - Replies (1)

I'm trying to make my first app and was wondering how do I make a list out of a list. Following some tutorials on udemy .

[python]list_body = ["hea..... More

Print this item

  Qestions using futurize and QtCore.Signal
Posted by: smaraux - Oct-28-2020, 06:27 PM - Forum: General Coding Help - Replies (3)

Hello,

We are porting (at last) our codebase on python 3 but need retrocomp with python 2, thus we are using "future".

I have some questions abo..... More

Print this item

  python mongo
Posted by: beginner2020 - Oct-28-2020, 06:25 PM - Forum: General Coding Help - Replies (2)

Hi

Iam a beginner in python coding. I have a requirement to get the count from one column which is of Object type from mongodb. Below is the code..... More

Print this item

  tkinter: Image to Label
Posted by: Maryan - Oct-28-2020, 06:05 PM - Forum: GUI - Replies (10)

I have some problem with my function. I want to open image(filedialog) and display the image into label.

[python]def openImg():
fileimg = file..... More

Print this item

  How do I add a number to every item in a list?
Posted by: john316 - Oct-28-2020, 05:17 PM - Forum: General Coding Help - Replies (2)

Hey Guys,

I;m wondering how could I add a number to every single item in a list.

So for example. test1, test2 test3, test4

If i would have a range ..... More

Print this item

  python
Posted by: mluong2 - Oct-28-2020, 05:10 PM - Forum: General Coding Help - Replies (3)

I'm new to python and stuck on the concept of command-line arguments.
The variable filename and input filename must both refer to files that exist an..... More

Print this item

  no image displayed with folium and pandas
Posted by: Declaix - Oct-28-2020, 03:09 PM - Forum: Data Science - Replies (1)

Hi,
I am trying to use folium and pandas and I ran the following script under ubuntu 18 with python3 under geany :

[python]#! python3
# coding: u..... More

Print this item

  Check network WITHOUT use internet
Posted by: ATARI_LIVE - Oct-28-2020, 02:30 PM - Forum: Networking - Replies (1)

I know one of code is works great as:
[python]try:
import httplib
except:
import http.client as httplib

def checkInternetHttplib(url="w..... More

Print this item

Question csv Dictwriter problems
Posted by: fsuedr2022 - Oct-28-2020, 02:09 PM - Forum: General Coding Help - Replies (4)

I have many lines of data like:


[{'begins_at': '2020-10-22T14:00:00Z',
'open_price': '5.125000',
'close_price': '5.130000',
'high_price': ..... More

Print this item

  Trying to integrate gcd function
Posted by: hhydration - Oct-28-2020, 12:37 PM - Forum: Homework - Replies (3)

I have this function, it prints a list of values.[python]def kasinski(text):
trigraphs=[]
distances=[]
for trigraph in range (len(text)-2)..... More

Print this item

  change dataframe header with 2 rows
Posted by: tonycat - Oct-28-2020, 10:22 AM - Forum: Data Science - Replies (2)

Hello, I am new to programming, have some questions , thanks ! Big Grin

I download stock quote from yahoo and return two dataframes, by 2 metho..... More

Print this item

  PyQt5: How to use connectSlotsByName ?
Posted by: arbiel - Oct-28-2020, 10:12 AM - Forum: GUI - No Replies

Hi

I'm looking for designing a way to display various layouts in a window using PyQt5. To do that, I try to define these layouts and the correspond..... More

Print this item

  Why is the function returning None for a * b instead of number?
Posted by: omm - Oct-28-2020, 05:31 AM - Forum: General Coding Help - Replies (10)

Problem: Write calculations using functions and get the results. Let's have a look at some examples:
seven(times(five())) # must return 35


This ..... More

Print this item

  Can Python Do This? Asset Management
Posted by: mbaker_wv - Oct-28-2020, 02:06 AM - Forum: General Coding Help - Replies (4)

Hi,
I'm not a python pro but rather a novice at best. I'm looking to maybe build a small little project on the side to better help with my IT asset ma..... More

Print this item

Exclamation Integrating py script onto GUI.
Posted by: edwin4project - Oct-28-2020, 01:41 AM - Forum: GUI - No Replies

I am a student who is new to Python. For my project, I am tasked to integrate a python program onto my GUI interface at the top left corner of it.

Ba..... More

Print this item

  Why does this function print empty list?
Posted by: hhydration - Oct-28-2020, 01:15 AM - Forum: Homework - Replies (1)

[python]def kasinski(text):
trigraphs=[]
distances=[]
for trigraph in range (len(text)-2):
newtrigraph= text[trigraph:trigraph..... More

Print this item

  Printing empty list?
Posted by: hhydration - Oct-28-2020, 12:56 AM - Forum: General Coding Help - Replies (2)

[python]def kasinski(text):
trigraphs=[]
distances=[]
for trigraph in range (len(text)-2):
newtrigraph= text[trigraph:trigraph..... More

Print this item

  class homework
Posted by: mohan10216 - Oct-28-2020, 12:40 AM - Forum: Homework - Replies (2)

Hi I wanted to get some help on how I could solve this python problem as I am just a beginner in python.
[color=#E74C3C]allow the user to enter their..... More

Print this item

  for loop question
Posted by: KEYS - Oct-27-2020, 11:16 PM - Forum: General Coding Help - Replies (1)

Hello,
I am trying to find the correct syntax to use in a for loop using an expression as a test condition.
The pseudo code i am trying to convert ..... More

Print this item

  QPushButton and and QmenuBar issues
Posted by: zettai - Oct-27-2020, 09:40 PM - Forum: GUI - Replies (5)

[python]import json
import math
import os
import PyQt5
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from ..... More

Print this item

  Converting a remainder to int to str
Posted by: tester_V - Oct-27-2020, 07:13 PM - Forum: General Coding Help - Replies (6)

Hi,
I'm converting seconds to HH:MM:SS and having a hard time converting a remainder (seconds) to an integer to a string Confused .
I found this..... More

Print this item

  Call object with string
Posted by: PEGylated_User - Oct-27-2020, 05:44 PM - Forum: GUI - Replies (4)

I am having issues finding the syntax for calling objects by name using a string. My current code finds all the checkboxes that have been selected an..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Graph Interpolate Difficu... 1 hour ago Tuurbo46 deanhystad General Codin...
  [SOLVED] Access keys and ... Yesterday, 11:47 Winfried Winfried General Codin...
  PermissionError: [Errno 1... Yesterday, 08:44 Tuurbo46 Tuurbo46 GUI
  How to make ball stay wit... 11-15, 16:07 nathanael deanhystad General Codin...
  sorting a lisr of file pa... 11-15, 13:00 Skaperen DeaD_EyE News and Disc...
  conditional nested loops 11-14, 23:31 Skaperen Skaperen News and Disc...
  PyQt6 QWidgets and system... 11-14, 18:38 stevecoh1 stevecoh1 GUI
  [solved] re.split issue 11-14, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... 11-14, 15:33 pbkurd Larz60+ General Codin...
  New to python and coding 11-13, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... 11-13, 11:52 yutaozhou noisefloor News and Disc...
Most views
  The best Prog... 579082
  Tutorial Requ... 511198
  Web Scraping ... 442063
  Newbie with P... 386122
  New Users Int... 378378
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+ 12108
buran 8196
snippsat 7389
deanhystad 6914
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
aminrony1999 Yesterday
fobby888 Yesterday
digitalboy346 Yesterday
ben9090o Yesterday
ViktoriaMetodieva Yesterday

User Panel Messages

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