Rocks, Paper Scissors
#Using Nested for loop to print the range of tables
lower=int(input("Enter the lower limit "))
upper=int(input("Enter the upper limit "))
for i in range(lower,upper+1): #Outer loop to the range of the tables to be printed
for j in range(1,11): #Inner loop to generate number from 1 to 10
print(i*j,end=" ")
print() #Inserts a newline character after each iteration of outer loop
Reverse Name
x="INDONESIA CHAMPION"
for i in range(-1,-len(x)-1, -1):
print(x[i], end="")
Math Random
import random
##Declare Variables
usernum=0
lottery_num=random.randint(0,10)
##Input
print("Welcome to the Lottery Program!")
usernum=int(input("Please enter a number between 1 - 10: "))
print("Calculating Results.")
if lottery_num==usernum:
print("All your numbers match in exact order! Your reward is $10,000!\n")
else:
print("Your numbers don't match! Sorry! Better luck next time")