MiniOS V2
Python
import time
import random
#Menu de inicio
print(f"""
O O ____ ________
Name: MiniOs ____ ____ | |_____ | / \ /______
MiniOS V0.0.2.1 / \__/ \ | | | | | | \
By diegotom1_DEV | | | | | | \_____/ ______/
@2026 thanks for github
Link to profile of github: https://github.com/diegostom
""")
name = input("You Name: ")
password = input("You password: ")
detectDev = input("You are a dev? y/n: ")
print("Loading...")
time.sleep(3)
print("Loading %5...")
time.sleep(1)
print("Loading %15...")
time.sleep(1)
print("Loading %25...")
time.sleep(1)
print("Loading %50...")
time.sleep(1)
print("Loading %79...")
time.sleep(1)
print("Loading %100...")
time.sleep(1)
print("Loading complete!")
print(f"Welcome to MiniOS V0.0.2 {name}")
if detectDev == "y":
time.sleep(1)
nameofdev = name
print(f"let's go {nameofdev}")
elif detectDev == "n":
nameofperson = name
print(f"Ok {nameofperson} you not are dev")
time.sleep(3)
print("loading name")
time.sleep(1)
print("loading data")
time.sleep(1)
print("loading language")
time.sleep(1)
print("error: language not defined" \
" wait me 5 seconds")
time.sleep(5)
nameNormal = name
language = input(f"OK {nameNormal} Time to choose your language/ hora de elegir tu lenguaje esp/ing: ")
if language == "esp":
print(f"haci esta mejor {nameNormal}?")
si = input("mejor? s/n: ")
if si == "s":
print("genial! ya elegimos tu lenguaje!")
if si == "n":
print("ok elegimos otro")
si2 = input("ing:")
if si2 == "ing":
print(f"let's go {nameNormal}")
if language == "ing":
print(f"It's better this way. {nameNormal}?")
si = input("better? y/n: ")
if si == "y":
print("Great! We've chosen your language!")
if si == "n":
print("Okay, let's pick another one.")
si2 = input("esp:")
if si2 == "esp":
print(f"genial! {nameNormal}")
if language == "ing":
calquestionAndGtng = input(f"@{nameNormal}: c Open a calculator or a Guess the number game or b open text editor: ")
if calquestionAndGtng == "a":
zoneplayer = input("Are you ready?(y/n): ")
if zoneplayer == "y":
print("Loading game...")
time.sleep(4)
print("Game loaded. Enjoy!")
time.sleep(2)
print("Guess my number between 1 and 100. You have 3 attempts.")
secret_number = random.randint(1, 100)
attempts = 0
while attempts < 3:
guess = int(input("Attempt: "))
attempts += 1
if guess == secret_number:
print("Congratulations! You guessed the number.")
break
else:
print(f"Sorry, the number was {secret_number}.")
elif zoneplayer == "n":
print("Ok, maybe next time!")
elif calquestionAndGtng == "b":
print("Loading text editor...")
time.sleep(4)
print("Text editor loaded. Enjoy!")
time.sleep(2)
print("Welcome to the text editor. You can write your text here.")
print("If you want to exit, type 'exit'.")
while True:
text = input("Write your text: ")
print(f"Your text is: {text}")
if text.lower() == "exit":
print("Exiting the text editor. See you later!")
break
if language == "esp":
calquestionAndGtng = input(f"@{nameNormal}: c Abre una calculadora a Abre el adivina el numero b Abre el editor de texto: ")
if calquestionAndGtng == "a":
zoneplayer = input("Estas listo?(s/n): ")
if zoneplayer == "s":
print("Cargando juego...")
time.sleep(4)
print("Juego cargado. ¡Disfruta!")
time.sleep(2)
print("Adivina mi número entre 1 y 100. Tienes 3 intentos.")
numero_secreto = random.randint(1, 100)
intentos = 0
while intentos < 3:
intento = int(input("Intento: "))
intentos += 1
if intento == numero_secreto:
print("¡Felicidades! Adivinaste el número.")
break
else:
print(f"Lo siento, el número era {numero_secreto}.")
elif zoneplayer == "n":
print("Ok, ¡quizás la próxima vez!")
elif calquestionAndGtng == "b":
print("Cargando editor de texto...")
time.sleep(4)
print("Editor de texto cargado. ¡Disfruta!")
time.sleep(2)
print("Bienvenido al editor de texto. Puedes escribir tu texto aquí.")
print("Si deseas salir, escribe 'salir'.")
while True:
texto = input("Escribe tu texto: ")
print(f"Tu texto es: {texto}")
if texto.lower() == "salir":
print("Saliendo del editor de texto. ¡Hasta luego!")
break
if calquestionAndGtng == "c":
print("Loading calculator %1")
time.sleep(1)
print("Loading calculator %5")
time.sleep(1)
print("Loading calculator %15")
time.sleep(1)
print("Loading calculator %25")
time.sleep(1)
print("Loading calculator %50")
time.sleep(1)
print("Loading calculator %79")
time.sleep(1)
print("Loading calculator %100")
time.sleep(1)
print("El lenguaje elegido no hacido posible cargarlo por el idioma default")
print("====Bienvenido a====")
print("====CalcuPy Beta V1====")
print("© 2026 juandiegosoto33548")
#si lo vas a modificar asegurese de cambiar juandiegosoto33548 por el suyo
while True:
# 1. Preguntar primero la operación
opera = input("¿Suma, Resta, Multiplicar, Dividir o Salir?: ")
# 2. Verificar si el usuario quiere terminar
if opera == "Salir":
print("¡Hasta luego!")
break
# 3. Pedir los números solo si va a realizar un cálculo
if opera == "Suma" or opera == "Resta" or opera == "Multiplicar" or opera == "Dividir":
num1 = float(input("Número 1: "))
num2 = float(input("Número 2: "))
if opera == "Suma":
resultado = num1 + num2
print(f"Resultado: {resultado}\n")
elif opera == "Resta":
resultado = num1 - num2
print(f"Resultado: {resultado}\n")
elif opera == "Multiplicar":
resultado = num1 * num2
print(f"Resultado: {resultado}\n")
elif opera == "Dividir":
# Validación para evitar el error de división por cero
if num2 == 0:
print("Error: No se puede dividir entre cero.\n")
else:
resultado = num1 / num2
print(f"Resultado: {resultado}\n")
else:
print("Operación no válida. Intenta de nuevo.\n")Feedback wanted
Sign in to react
la segunda version
Feedback
Published feedback
InimitableRobby
Updated Sep 20, 2026Juan diego Soto, tu proyecto 'MiniOS V2' tiene un menú interactivo con varios mini programas e incluso reconoce el idioma del usuario, lo que muestra que pensaste en diferentes tipos de personas que pueden usarlo.
Me encanta cómo lograste que el usuario elija entre juegos y editor de texto, ¡eso hace que tu MiniOS se sienta como una verdadera mini computadora hecha en Python!