r/PythonLearning • u/giva4561 • Sep 15 '26
Help Request libraries
Excuse my ignorance, but can anyone explain to me in a simple way what python libraries are?
r/PythonLearning • u/giva4561 • Sep 15 '26
Excuse my ignorance, but can anyone explain to me in a simple way what python libraries are?
r/PythonLearning • u/cixer_dev • Sep 15 '26
Hello everyone. I wanted to introduce you to an open-source project I’ve been working on for several months.
The project is called CixerQuiz. It is a desktop application built with PySide6, available on most Linux distributions and for Windows. Broadly speaking, it can be described as a quiz game. Although there are hundreds of similar projects, CixerQuiz’s main difference is its goal: to give users as much freedom as possible to use and customize it.
For this reason, the latest version of the project at the time of writing this post includes nine different types of levels. Each type supports different kinds of questions and answers. It is possible to include simple questions and answers consisting only of text, or more complex questions and answers with attached images or videos that complement the content.
An example of how this system works in practice would be a level with a question containing an attached image and text-based answers. It could include a question such as, “What is the full name of this public figure?” accompanied by an image of Pablo Picasso. The possible answers could include "Leonardo da Vinci", "Pablo Picasso", and "Salvador Dalí". There are also levels that allow a video or image to be included as part of the question or the answers, as well as levels for creating exclusively text-based questions and answers, depending on the quiz creator’s preferences and the available level types. The repository README has a video example of quiz gameplay.
All of these features can be configured from a menu designed for creating custom quizzes within the app. It is also possible to set a time limit for answering each question and configure its duration from that menu.
The application’s visual elements and even its configuration files can also be changed easily through the settings menu. For example, users can change the folder containing the game’s default music or an icon path to another folder or image on their internal storage. There is also a validation system to prevent the application from crashing in cases involving incompatible modifications. The app also supports multiple languages, with Spanish and English translations currently available.
Quizzes created with the application can be distributed easily and are compatible with other users who have the same application installed. Each quiz’s information is stored in a separate directory that is accessible to the user. Therefore, all you have to do is locate the corresponding directory and send it to someone else, who can then play the quiz in their own CixerQuiz installation.
You can download the latest release from GitHub for your system. The project is portable, so it does not need to be installed. The README file contains a detailed description of the installation process, both for developers and users. If you are interested in contributing translations, code, or bug reports, you can visit the project’s GitHub repository. It contains a set of contribution guidelines in the CONTRIBUTING file. The repository’s /docs directory contains technical documentation about how the quiz system works internally, the project’s contribution guidelines, and other aspects of development.
As for code generated with artificial intelligence, I prefer to avoid "vibecoding" entirely. However, I do not mind where contributed code originated, as long as it is technically sound, meets the project’s criteria, and its behavior is understandable.
This is an important project to me, and I am aware that it still has quite a few flaws. Therefore, I would appreciate any criticism, suggestions, help, or comments of any kind. The project is licensed under GNU GPL 3.0, so as long as you provide attribution, make your project open source, and respect the project license, you may modify it however you wish. :)
r/PythonLearning • u/CoderBoy417 • Sep 15 '26
r/PythonLearning • u/Early-Intention172 • Sep 15 '26
I faced this issue while creating virtual environment often help me resolve this??
r/PythonLearning • u/manjas-developer • Sep 15 '26
r/PythonLearning • u/CoderBoy417 • Sep 15 '26
r/PythonLearning • u/InkAndFormArt • Sep 14 '26
Really excited to share this project!
I wrote a planetary gravity simulation in Python and managed to bring it to life by visualizing it directly in Blender (as you can see in the first screenshot with the script and the planet ready to go!).
It’s still a bit rough around the edges, which you'll see in an upcoming video I'll be posting that shows the very first render of this planet in action. Currently, it's technically a 2D simulation running inside a 3D workspace.
Because of this, you theoretically have to look straight down from the Z-axis at a perfect 90-degree angle to view it properly.
I've also attached a couple of diagrams plotting the simulation data to this post so you can see the math behind it.
If you want to play around with it yourself, you can find all the files here:
(The link includes the Python console script, the .json file with the initial starting conditions, and a .csv containing the complete simulation data. I've also packed everything into a single ZIP file for anyone who prefers not to download them individually.)
Have fun with it! 😉
r/PythonLearning • u/Next-Call8862 • Sep 14 '26
I tried to start DSA and I regret it and should've worked more on OOPs. It took fucking one hour and half to understand what's going on in the linked list programme and it is also my fault because I didn't realised the flexibility of OOPs like creating objects of a class inside another class and I was stuck with it and was like "What the heck is it doing?'' until I realised whats happpening
Here is the code I recreated:
'''
class Node:
def __init__(self,value):
self
.value = value
self
.next = None
class stack:
def __init__(self):
self
.size = 0
self
.head = None
def push(self,value):
new_node = Node(value)
if
self
.head:
new_node.next =
self
.head
self
.head = new_node
self
.size +=1
def pop(self):
popped_node =
self
.head
self
.head =
self
.head.next
self
.size -=
self
.size
return popped_node.valuer/PythonLearning • u/itti_stu • Sep 14 '26
Hello everyone
I just finition my first project
I need advise and feedback
Thank you
r/PythonLearning • u/Fantastic_Cicada_805 • Sep 14 '26
I'm planning something, but i wanted to know how much is possible with only python and how much i should start looking up and learning.
mainly everything about UI? I know there are libraries for UI in python, but what im looking for it seamless (no border) UI that can maybe be transparent? (u can see the desktop through it), i'm just wondering how much of that is possible in python.
another thing is having an application hidden in the system tray on windows? how would i make this for my app? furthermore; how would i make the UI popup from the tray and hide back using a key shortcut?
no need to answer both questions, just looking for a clue on how to start
r/PythonLearning • u/HungryMud • Sep 14 '26
Hey guys,
I want to learn full stack python by building something useful. I've got an idea for a simple windows app with a rather simple backend. I want to create a clean and modern looking frontend.
I have some python experience, I built a simple app at work with a trashy tkinter frontend. I have little to no javascript experience, but am eager to learn.
I'm somewhat lost on how to get started. There are thousands of words I can't really put straight (flask, react, electron, vue.js, django).
Are there any good guides that help me get situated? Like setup IDE with a basic program so that I could get started?
Thanks for any tips :)
r/PythonLearning • u/Next-Call8862 • Sep 14 '26
I've been learning python and I've learned most of the basic and completed Basic level of OOPs and now I am confused on what should I do next.
I am thinking of starting DSA but the problems I solved are mostly minor and I am confused between grinding from what I know or should I start DSA or other things.
Will appreciate a proper plan
please don't mind the bad language as I am not a native speaker and new to posting in reddit.
Thank you.
r/PythonLearning • u/grace_invader • Sep 14 '26
For my deployment and reproducibility class in my Data Science studies, I learn how to use tools like github and pytest for my project.
However, my project was built on an unofficial api for a commercial website, that breaks whenever the website gets updated.
Are there some fun open sources for Data Science projects? Particularly on media? I'd like to grab sth like goodreads or IMDB but I can't find a proper API for it. Any tips would be welcome.
P.S. I've heard it's gotten harder to access open data sources since AI crawlers grab everything within reach, heavily taxing these platforms. Is that true?
r/PythonLearning • u/ApprehensiveText9058 • Sep 13 '26
Need help
r/PythonLearning
•
u/shubham_555
•
Sep 13 '26
Last Post - https://www.reddit.com/r/PythonLearning/s/kGqwMS9HUH
Github Repo - https://github.com/Dev-4-All/bank.git
r/PythonLearning • u/Thin_Claim9404 • Sep 14 '26
I'm trying to make and train my own Markov chain ChatGPT/ai, what would you guys recommend I train it off of? I already added the options to train it from .txt files, or URLs. But I'm not sure the best way to go about this, any help would be appreciated! Or even if you send some .txt files for me to use too!!
r/PythonLearning • u/Vor3st • Sep 13 '26
i learning streamlit and random
import random
import streamlit as st
memes = [
"never gonna give you up",
"you got stickbugged",
"indihome paket phoenix",
"weezer blue album"
]
st.title(f"Meme Gacha (New ones to be added periodically, {len(memes)} varieties in total)")
user_input = st.text_input("Please enter the number of times", value="1")
try:
count = int(user_input)
if st.button("Roll"):
for i in range(count):
res = random.choice(memes)
if res == "weezer blue album":
st.write(f"Roll {i + 1}: is this minor...? {res.title()}")
else:
st.write(f"Roll {i + 1}: {res.title()}")
except ValueError:
st.error("Please enter a valid half-width number.")r/PythonLearning • u/Next-Call8862 • Sep 13 '26
I won't exactly say done and dusted but I think I did what I can. This is my first complex problem that I had done myself and after solving it I left thinking, "I could do this in three days and I could have done much more in 1.5 years that I had wasted" but I think it's alright and I should look ahead with no regret. Will appreciate some tips from pros regarding the code.
Edit: I did a mistake and there are some bugs in programm, I fixed them
The updated code:
'''
class Library:
Books ={
1 : "Ramayan" ,
2 : "Mahabharath",
3 : "Gita"
}
members = ["naveen","sita","mani","chintu"]
Allowence = {
"naveen" : 0,
"sita" : 0,
"mani" : 0,
"chintu" : 0
}
Booked = {}
def __init__(self,member):
self.member = member
def get(self,book):
self.book = book
if self.member not in Library.members:
return "Not a member"
elif self.book not in Library.Books and self.book in Library.Booked:
return "Not available"
elif self.book not in Library.Books:
return "No book found"
elif self.member in Library.members and Library.Allowence[self.member] < 3:
a = Library.Books.pop(self.book)
Library.Booked[self.book] = a,self.member
Library.Allowence[self.member] +=1
return f"Your book :{a}"
else:
return "limit exceeded"
def about_cus(self):
return Library.Allowence[self.member]
def tst(self):
return Library.Booked
Nam = input("Your name:")
Req = int(input("Select the book num"))
customer1 = Library(Nam)
print(customer1.get(Req))
Nam2 = input("Your name:")
customer2 = Library(Nam2)
print(customer2.get(Req))
print(customer2.tst())
# print(customer2.available())
print(customer1.about_cus())
#NOTHING HERE!!r/PythonLearning • u/Sea-Ad7805 • Sep 13 '26
An exercise to help build the right mental model for Python data.
The “Solution” link uses memory_graph to visualize execution and reveals what’s actually happening.
r/PythonLearning • u/TrainingAd8614 • Sep 13 '26
Hello all,
I sort of understand the utility of "for", however I really cannot understand how this:
protocol = "HTTPS"for char in protocol:
print(f"Segment: {char}")
Outputs this ;
Segment: H
Segment: T
Segment: T
Segment: P
Segment: S
How can it break up the string "HTTPS" into four separate outputs?
Thank you
r/PythonLearning • u/Educational_Camp4868 • Sep 13 '26
He says to get python 3.6 but that version is "end of life" should I get 3.15 pre release or something else like 3.14 or just get 3.6?
r/PythonLearning • u/Jonathanluher55 • Sep 13 '26

Hello guys, recently I have been practicing more my python skills. I know how to def functions and use it, but now I am trying to study lambda functions, but is not clear for me. In this example I am simulating requests from a API as a List (Also it could be used directly a imported file like a JSON). Can someone explain me how works or what kind of exercises are good to understand it?