Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Game4
#python 3.6.9 def main(): print ("Hello, world!") # example of how to build a list. mylist = [ ] mylist.append(1) mylist.append(2) mylist.append(3) print(mylist[0]) # prints 1 print(mylist[1]) # prints 2 print(mylist[2]) # prints 3 # prints out 1,2,3 for x in mylist: print(x) count = 0 import random from random import randint value = randint(1,10) #1 and 10 represent the range for your #random value print(value) Num1 = value count =+ 1 if count < 3: value2 = randint(1,10) print (value2) #elif (count == 2): value3=randint(1,10) print (value3) else : print("end", Num1) main ()
run
|
edit
|
history
|
help
0
PySuper
Get the longest repeated non-overlapping substring
Hello,world
Iterator-1
My name
https://rextester.com/REAL13110
gj1
linked_lists
PyCutRod(BotUp)
Prime Factorization of a Number