repl.it
@DragoniteDL/

Poptropica Name Demo

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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import replit

replit.clear()

done = 0

var1_ = 1
var2_ = 1
var3_ = 1

var1 = 1
var2 = 1
var3 = 1

var11 = 'Cool'
var12 = 'Wild'
var13 = 'Awesome'

var21 = 'Bean'
var22 = 'Depressed'
var23 = 'Smile'

var31 = 'Pants'
var32 = 'Wizard'
var33 = 'Potato'

def render():
  replit.clear()
  print(var1,var2,var3)
  print('')
  print('1 2 3')
  print('4 to keep')

def name1():
  if var1_ == 1:
    var1 = var11
  if var1_ == 2:
    var1 = var12
  if var1_ == 3:
    var1 = var13
  else:
    var1_ = 1

def name2():
  if var2_ == 1:
    var2 = var21
  if var2_ == 2:
    var2 = var22
  if var2_ == 3:
    var2 = var23
  else:
    var2_ = 1

def name3():
  if var3_ == 1:
    var3 = var31
  if var3_ == 2:
    var3 = var32
  if var3_ == 3:
    var3 = var33
  else:
    var3_ = 1

while (done != 1):
  render()
  user = int(input())
  if user == 1:
    name1()
  if user == 2:
    name2()
  if user == 3:
    name3()
  if user == 4:
    done = 1

replit.clear()
print('Hello,',var1,var2,var3)