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,968
» Latest member: seomelbourneaustralia
» Forum threads: 38,730
» Forum posts: 175,550

Full Statistics

Online Users
There are currently 44 online users.
» 1 Member(s) | 40 Guest(s)
Bing, AOL, Google, snippsat

Latest Threads
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
2 hours ago
» Replies: 7
» Views: 2,769
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: tester_V
3 hours ago
» Replies: 5
» Views: 287
looking for help
Forum: Bar
Last Post: PhamMaria
4 hours ago
» Replies: 1
» Views: 1,890
My goal to be hired worki...
Forum: News and Discussions
Last Post: Larz60+
Yesterday, 11:58 PM
» Replies: 1
» Views: 631
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 06:49 PM
» Replies: 4
» Views: 2,160
My First App
Forum: Code Review
Last Post: carlbidwell
Yesterday, 10:53 AM
» Replies: 8
» Views: 8,730
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 03:54 AM
» Replies: 3
» Views: 622
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,112
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 1,097
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,377

 
  Use if with and function?
Posted by: ibutun - May-30-2020, 05:42 PM - Forum: General Coding Help - Replies (5)

Hi members, i am new here and I have so many requests in phyton to learn... Please help me... i write a code like this but not working

[python]num ..... More

Print this item

  binance script
Posted by: torgny4 - May-30-2020, 05:00 PM - Forum: General Coding Help - Replies (3)

[color=#2ECC71]






def initialize(state):
state.counter = 0



@schedule(interval="1h",
symbol="BTCUSDT”)




If state.count..... More

Print this item

  Can the video calling feature be used from python telegram bot api?
Posted by: Kumarkv - May-30-2020, 01:34 PM - Forum: News and Discussions - No Replies

Dear All,

I would like to know if the video calling feature can be implemented in Telegram through python telegram api.

Thanks,

Print this item

  display content from left to right in QComboBox or QLineEdit
Posted by: mart79 - May-30-2020, 12:34 PM - Forum: GUI - Replies (2)

Hi all,

I have several QComboBoxes and QLineEdits on my UI, which can show different content depending on user selections.
However, when the user ..... More

Print this item

  Referrals
Posted by: pyzyx3qwerty - May-30-2020, 10:49 AM - Forum: Board - Replies (2)

What are referrals? How do you do them?

Print this item

  Odd numpy error with subtraction
Posted by: DreamingInsanity - May-30-2020, 09:25 AM - Forum: General Coding Help - Replies (5)

I have this function here which is an answer from a thread of mine a while ago.
[python]
def find_closest(color, rgb):
return rgb[np.argmin(np...... More

Print this item

  Drop Keys From Dictionary
Posted by: donnertrud - May-30-2020, 09:23 AM - Forum: General Coding Help - Replies (8)

Hi guys,

I got a dictionary with values ranging from 0.25 to -0.25. I am looking for a way, to automatically drop all keys that are either

0 < v..... More

Print this item

  UnBoundLocalError
Posted by: Seaninho - May-30-2020, 08:59 AM - Forum: General Coding Help - Replies (3)

Hello to everyone!

I'm trying to create a code using Python but I have a problem.
It gives me this error:
[error]File "/opt/miniconda3/bin/sfi..... More

Print this item

  _tkinter.TclError: image "pyimage2" doesn't exist
Posted by: Killdoz - May-30-2020, 08:14 AM - Forum: GUI - Replies (1)

[error]Traceback (most recent call last):
File "C:\Users\User\Desktop\програування\stickmen\mister mario goes to exit.py", line 331, in <module>
..... More

Print this item

  if the input is not number, let user input again
Posted by: teatea - May-30-2020, 07:28 AM - Forum: General Coding Help - Replies (14)

hi :) i am starting to learn python, and learning from Automating Boring Stuff With Python, then i tried to implement the knowledge and do something b..... More

Print this item

  File Opening
Posted by: Hitso - May-30-2020, 07:04 AM - Forum: General Coding Help - Replies (10)

I cannot open the file below. Both the .py file and the salesdata.csv are stored in the same directory.

This is the error :
FileNotFoundError: [Er..... More

Print this item

  Google Sheets API Error
Posted by: Connerb42 - May-30-2020, 06:45 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi I am high school senior and I want to do a small program for a school project.

I need to get information from a google sheet into my code. I fol..... More

Print this item

  After_cancel
Posted by: menator01 - May-30-2020, 06:32 AM - Forum: GUI - Replies (1)

I've been playing around with an earlier post. I added a reset timer to the widget. The first run through the timer works as expected but, the next ru..... More

Print this item

  [split] Any improvements
Posted by: Adamstiffman - May-30-2020, 03:46 AM - Forum: Code Review - Replies (1)

I design a code Python Program Code for Sort File In System : -
[python]#!/usr/bin/env python

from __future__ import print_function # Only for P..... More

Print this item

  python library not defined in user defined function
Posted by: johnEmScott - May-30-2020, 03:41 AM - Forum: General Coding Help - Replies (2)

Why doesn't this work?

[python]
def main():
import os
fileName = "text.txt"
userfunction(fileName)

def userfunction(fileName):
..... More

Print this item

  NEED HELP WITH NUMBER SORTER
Posted by: Paul_Choi06 - May-30-2020, 01:25 AM - Forum: General Coding Help - Replies (2)

Hi, I am trying to make a number sorter. I wish for the user to enter numbers and then the program will put in order from least to greatest. My proble..... More

Print this item

  How to append elemnent in columns
Posted by: Mekala - May-30-2020, 12:27 AM - Forum: General Coding Help - No Replies

Hi,
I am reading an XML file and want to append the data to the list. I want to append corresponding elements in their respective columns, for exampl..... More

Print this item

  LMS (Learning Management System)
Posted by: ibrhmymn - May-29-2020, 10:17 PM - Forum: News and Discussions - Replies (7)

Hi friends,
I want to learn coding, and especially I want to get expertise on creating LMS (Learning Management System)which are working web based mo..... More

Print this item

  DFS and BFS
Posted by: garry1415 - May-29-2020, 05:56 PM - Forum: News and Discussions - Replies (1)

What happens if the ending cell is very close to the starting cell? Is DFS guaranteed to be faster than BFS?

Print this item

  install the gTTS
Posted by: yasser - May-29-2020, 05:39 PM - Forum: News and Discussions - Replies (4)

Hello

I am trying to install gTTs from pycharm but i have the below error:

pip install gTTS

Error

python -m pip install gtts
..... More

Print this item

  can't save text string
Posted by: branko316 - May-29-2020, 05:11 PM - Forum: General Coding Help - Replies (2)

Hi, I'm working in the FreeBSD OS environment and using Python version 3.6.8.

I'm essentially trying to run a script that does the equivalent of th..... More

Print this item

  Flask deployment from heck
Posted by: lmolter54 - May-29-2020, 05:04 PM - Forum: Web Scraping & Web Development - Replies (4)

Hi and hello. This is my first post. To summarize, I retired from 44 years as a C and dinosaur-language programmer in April of '20. My wife was using ..... More

Print this item

  GUI section
Posted by: menator01 - May-29-2020, 03:20 PM - Forum: News and Discussions - Replies (4)

I just noticed that the views for GUI ha s 11349 views. Are they really that many people interested in dy..... More

Print this item

  Typing and variable initializers
Posted by: jgossage - May-29-2020, 03:18 PM - Forum: General Coding Help - No Replies

I am starting to use typing and have come up with problems working out how to use typing in a particular situation.
I am running Python 3.8.3 in Ecli..... More

Print this item

  Differential equations with initial condition in Python (change a working code)
Posted by: Euler2 - May-29-2020, 02:50 PM - Forum: General Coding Help - Replies (1)

I am pretty new in Python. I have a working code which looks like

[python]
import numpy as np
import scipy.integrate as sp
import sys
g, l, k =..... More

Print this item

  [XML] How to remove node?
Posted by: Winfried - May-29-2020, 02:50 PM - Forum: General Coding Help - No Replies

Hello,

Does someone know how to use pykml/lxml to remove a node?

I simply need to remove all occurences of "ExtentedData" nodes from a KML file,..... More

Print this item

  Excpetion Handling Getting Error Number
Posted by: gw1500se - May-29-2020, 02:34 PM - Forum: General Coding Help - Replies (4)

I don't know why this is rocket science but I cannot find any way to get just the error number in the exception handler. All the examples show how to ..... More

Print this item

  Parse encrypted xml file to csv
Posted by: Mekala - May-29-2020, 01:56 PM - Forum: General Coding Help - Replies (2)

Hi,
I have encrypted the XML file and need to parse and save it to the CSV file. Does python have any module to do this task? and example?

Print this item

  How to create a varying qty of instances of a Class and name them?
Posted by: KM007 - May-29-2020, 12:15 PM - Forum: General Coding Help - Replies (2)

For a very simple dice game I intend to create a class with attributes of name and score. It is straight forward to create this and also to create obj..... More

Print this item

  Ignore first few letters of a line when reading file.
Posted by: ShakeyPakey - May-29-2020, 11:14 AM - Forum: General Coding Help - Replies (16)

Hello, everybody!

I have run into a spot of bother while writing my Python script and I am wondering if anyone can help me out...... More

Print this item

  urllib.request.urlopen and proxy
Posted by: perseus142 - May-29-2020, 08:46 AM - Forum: Networking - No Replies

Hello guys,
I am learning python. Now I am at stage to use urllib.request.urlopen.
The code from py4e:

[python]import urllib.request, urllib.par..... More

Print this item

  remove spaces with exceptions
Posted by: catosp - May-29-2020, 08:12 AM - Forum: General Coding Help - Replies (4)

Hello!

I have the following problem:

This is the string: asdas asdd sd a2123 3234 "test asd" asda

Is possible to remove all spaces except the..... More

Print this item

  Receiving ValueError("bad input shape {0}".format(shape)) error
Posted by: SuryaCitizen - May-29-2020, 07:57 AM - Forum: General Coding Help - Replies (2)

Hi,

I'm trying to run the below code but receiving "ValueError("bad input shape {0}".format(shape))" error. Can someone please help me resolve this..... More

Print this item

  TypeError that i can't solve it
Posted by: cls0724 - May-29-2020, 07:14 AM - Forum: General Coding Help - Replies (1)

[python]class MACD_Strategy:
def __init__(self, stock_price, MACD, MACD_Signal):
self.stock_price = stock_price
self.MACD = MAC..... More

Print this item

  xlwings UDF showing name error
Posted by: pwt - May-29-2020, 04:34 AM - Forum: General Coding Help - Replies (9)

Hi,

I'm trying to write a simple UDF using xlwings. Note that I don't have much experience with Python.

The Python code that I'm trying to call ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Select Python comment (#)... 2 hours ago SpongeB0B tester_V General Codin...
  Comparing 2 100GB Drives/... 3 hours ago tester_V tester_V General Codin...
  looking for help 4 hours ago Azdaghost PhamMaria Bar
  My goal to be hired worki... Yesterday, 23:58 GnomeSweetGnome Larz60+ News and Disc...
  what does % stand for in ... Yesterday, 18:49 arbiel Gribouillis General Codin...
  My First App Yesterday, 10:53 BCopeland64 carlbidwell Code Review
  Unable to resolve FileNot... Yesterday, 03:54 llarkin6 Pedroski55 General Codin...
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
  pdf file processing: how ... 09-26, 13:14 Pavel_47 noisefloor General Codin...
  Regarding pdf for PCEP an... 09-26, 09:50 P212 Biks News and Disc...
Most views
  The best Prog... 577274
  Tutorial Requ... 500346
  Web Scraping ... 440954
  Newbie with P... 384977
  New Users Int... 369317
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+ 12089
buran 8176
snippsat 7368
deanhystad 6896
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
seomelbourneaustralia Today
Jacobjoift Today
PhamMaria Today
zalexstolzeoz5360 Today
Edzed4431 Yesterday

User Panel Messages

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