Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 241717

Python is an interpreted, general-purpose high-level programming language whose design philosophy emphasizes code readability. Use the python tag for all Python related questions. If you believe your question may be even more specific, you can include a version specific tag such as python-3.x.

5 votes
2 answers
670 views

Using a Difference table to find the next element in a sequence

Recently I implemented a python code that predicts the next number of a sequence using a difference table (a little more on the subject here) def s(d,p=0): if (len(d) > 1): return s([i[0]-i … This code takes the input(by stdin), the sequence separated by comas, like: 1,2,3 and outputs what it thinks is the next digit 4 Is there any way to make this code better or simplify it even more by python
TheHappyBee's user avatar
5 votes
3 answers
835 views

Library: Point class

./3 -1: https://stackoverflow.com/questions/19141432/python-numpy-machine-epsilon @dataclass class point: x: float = 0.0 y: float = 0.0 #x first then y (2,3) > (1,4) and (2,4) > ( …
TheHappyBee's user avatar
2 votes
1 answer
360 views

Is there any way to stop the lag in this Gif opener?

Recently, I made this gif opener using tkinter: import tkinter as tk from tkinter import filedialog as fd import time import threading def getfile(): file = fd.askopenfilename() window = tk …
TheHappyBee's user avatar
7 votes
1 answer
947 views

Digital clock with Python Tkinter

While learning about python tkinter, I decided to make a digital clock: from datetime import datetime import tkinter as tk from threading import Thread import time class clock(): def __init__(self …
TheHappyBee's user avatar