--Originally published at Python3
#Calling functions, Creating functions
https://github.com/razonixx/TC101/blob/master/Var.py
Fundamentals of Programming
--Originally published at Python3
#Calling functions, Creating functions
https://github.com/razonixx/TC101/blob/master/Var.py
--Originally published at Python3
My code:
x = input("please type an integer: ") #ask the user for an integer
print(x) #print the integer given by the user
--Originally published at Python3
My code:
x=1 #set variable x to 1
if(x==1):
print("1") #if x=1, print 1
else:
print("2") #if x !=1, print 2
x=2 #set variable x to 1
if(x==1):
print("1") #if x=1, print 1
else:
print("2") #if x !=1, print 2