repl.it
@gramatgesj21/

python-os

Python

HEY WHAT'S UP

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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
def python_os():
  
  print("\n Welcome to python os")
  
  user=input("\n User:")
  
  password=input("\n Password:")
  
  def sign_up():
    
    confirm_password=input("\n Confirm Password:")  
    
    if password==confirm_password:
    
      print("\n booting up.......")
    
    else:
    
      print("\n Try agian")
      
      sign_up()
    
  sign_up()
  
  def load_up():
  
    print("\n reading files..... \n rebuilding........  \n  checking for updates........................")
  
  def sign_in(user_you,password_you):
    
    print("\n Your username is:",user_you)
   
    password_check=input("\n password:")
   
    if password_you==password_check:
      
      print("\n you're good")
     
      global function
     
      function="Ready==Yes"
     
    else:
    
      sign_in(user,password)
  
  load_up()
  
  sign_in(user,password)

  def desktop():
    
    print("\n Welcome to python......")
    
    print("\n Applications aviable:","\n Time, \n ai, \n random number (x-y, you choose),\n text convert, \n and that's it...")
    
    navigate=input("\n What would you like to do?")
    
    navigate=str.lower(navigate)
    
    if navigate=="listen to music":
      
      print("\n Sorry unaviable, expect with https://youtube.com")
    
    if navigate=="internet":
      
      print("\n https://www.youtube.com/watch?v=UJ4EVpFWvr0&list=PL5-WT4DlkvgrZ7DumgsR-4OTCrDFIM2M1"," \n music")
    
    
    if navigate=="settings":
      
      print("\n HMMMMMMMM yeah no.")
      
    if navigate=="open chrome":
      
      print("\n Sorry but no....")
      
    if navigate=="time":
      
      print("\n Opening Time app....")
    
      import time
    
      now = time.localtime()
    
      #hour = now.tm_hour

      print("\n",now)
      
    if navigate=="super mario galaxy 1/2":
      
      print("\n Loading......")
      
      print("\n Super Mario Galaxy loaded")
      
      print("\n Play as...")
      
    if navigate=="ai":
      
      def ai():
        
        hey="Hey"
        
        if hey=="Hey":
          
          print("\n Not acessible, we would use the google assistant but sadly yeah sorry.... but we would need help for someone. ")
        
        hey="1"
        
        def ai_exe():
          
          print("\n Functions: time, and see basic programs. ")
      
          run=input("\n Run program:")
          
          run=str.lower(run)
          
          if run=="basic programs":
            
            print("\n want code for well ....... ")
            
            choose_1=str.lower(input("\n Get code for alphabietical order, str generator orginal, str generator changed(my version), \n a cool game(Not made by me), \n looping functions(work in progress) \n \n :"))
              
            if choose_1=="word choice order":
                  
              print("\n go to https://repl.it/@gramatgesj21/a-z-order")
              
            if choose_1=="str generator orginal":
              
              print("\n Go to https://repl.it/@gramatgesj21/str-generator-copied-online")
              
            if choose_1=="str generator changed":
                
              print("\n https://repl.it/@gramatgesj21/str-generator-changed")
            
            if choose_1=="a cool game":
              
              print("\n https://repl.it/@gramatgesj21/game101")
            
            if choose_1=="looping functions":
              
              print("\n https://repl.it/@gramatgesj21/LOOP-FUNCTIONS-BY-NUMBER")
            
            if choose_1=="":
              
              print("\n Really? UGHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH!")
              
            else:
                
              print("\n Sadly that program is not programmed  wait until to the future.")
        
              
        ai_exe()
              
              
      ai()
    
    
    if navigate=="random number":
      
      import random
      
      x=int(input("\n Choose the starting number:"))
      
      y=int(input("\n Choose the ending number:"))
      
      number=random.randint(x, y)
      
      number=str(number)
      
      print("\n You're number is "+ number+".")
    
    if navigate=="turn off":
      
      print("\n Bye yo..........")
      
      quit()
  
    if navigate=="kahoot":
    
      print("\n Sadly we can't do this...")
      
    if navigate=="toad sings":
      
      print("\n https://www.youtube.com/watch?v=mUsBljESbag")
    
    elif navigate=="easter egg":
      
      print("\n loading........ \n secret game location: \n  https://codereview.stackexchange.com/questions/36768/tiny-text-adventure \n find more on: \n  https://www.google.com/search?q=python+text+game&rlz=1C1GGRV_enUS761US761&oq=python+text+game&aqs=chrome..69i57j0l5.7619j0j7&sourceid=chrome&ie=UTF-8 \n and then in repl.it: \n Different Game: https://repl.it/@gramatgesj21/game1 \n and then orginal game: https://repl.it/@gramatgesj21/game2")
    
    if navigate=="text convert":
      
      num1=int(input("\n Convert something(number):"))
      
      convert_type=input("\n Convert Type(binary,unicode):")
    
      if convert_type=="binary":
      
        n1=format(num1,"b")
      
        print("\n The text now:",n1)
        
      if convert_type=="unicode":
        
        n1=format(num1,"c")
        
        print("\n Text now:",n1)
    
  if function=="Ready==Yes":
    
    desktop()


python_os()


function=""
  


  
?