@DragoniteDL/

Scroll Test

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import replit as r
import colorama
from colorama import Fore, Style

def render():
  r.clear()
  print(Fore.LIGHTRED_EX + str(var1),Style.RESET_ALL)
  print(Fore.RED + '1 - +1')
  print('2 - -1')
  print('3 - Done',Fore.LIGHTRED_EX)

var1 = 1

done = 0

while (done != 1):
  render()
  user = int(input())
  
  if user == 1:
    var1 = var1 + 1
  if user == 2:
    var1 = var1 - 1
  if user == 3:
    done = 1

r.clear()
print("Your ending number was",Fore.RED + str(var1) + (Fore.LIGHTRED_EX + "."))