xxxxxxxxxx
x = 10
y = 5
print(x) # 10
print("x is ",x) # x is 10
print(x,y) # 10 5
print("sum of", x, "and", y, "is", x+y) # sum of 10 and 5 is 15
mCar = "A"
print(mCar * y) # AAAAA
xxxxxxxxxx
# To print a string...
print("I am a string yay")
# To print an answer to an equation...
print(5+5)
# To print the answer of previously defined variables...
x = 50
n = 30
print(x + n)
# Notes:
# You can't add a string to a number.
x = "foo"
n = 50
print(x + n)
# That will come up with an error.
xxxxxxxxxx
print("tell me you only searching this question to test if Grepper works")
xxxxxxxxxx
likes = 9999
print(f"A like if you love learning python with grepper. Likes:{likes}")
#or
print("A like if you love learning python with grepper. Likes:" + likes)
#or
print("A like if you love learning python with grepper. Likes:", likes)
xxxxxxxxxx
#Normal:#
print("Hiya Grepper!") #Output: Hiya Grepper!#
#As Equation:#
print(1+1) #Output: 2#
#With String Variables:#
x = 'Pog'
print(x + 'Champ') #Output: PogChamp#
#With Integer Variables:#
y = 9999
z = str(y)
print('You have ' + z + ' IQ') #Output: You have 9999 IQ#
#NOTE: Not converting the int variable to a str variable will return an error#
xxxxxxxxxx
# Rainy Day
wet = 'umbrella'
print(wet)
# Sunny Day
hot = 'sunglasses'
print(hot)