# This is a comment
# A comment is used for explanations/descriptions/etc.
# Comments do not affect the programs

# let's define an integer variable named a
a = 5

# let's print its value
print(a)

# let's define three integer variables named a, b, and c
a = 2
b = 4
c = a + b # summation of a and b

# let's print their values together 
print(a,b,c)
# a single space will automatically appear in between

# let's print their values in reverse order
print(c,b,a)

# let's print their summation and multiplication
print(a+b+c,a*b*c)

# let's define variables with string/text values

hw = "hello world" # we can use double quotes
hqw = 'hello quantum world' # we can use single quotes

# let's print them
print(hw)
print(hqw)

# let's print them together by inserting another string in between
print(hw,"and",hqw)

# let's concatenate a few strings
d = "Hello " + 'World' + " but " + 'Quantum ' + "World" 

# let's print the result
print(d)

# let's print numeric and string values together
print("a =",a,", b =",b,", a+b =",a+b)

# let's subtract two numbers
d = a-b
print(a,b,d)

# let's divide two numbers
d = a/b
print(a,b,d)

# let's divide integers over integers
# the result is always an integer (with possible integer remainder)
d = 33 // 6
print(d)

# reminder/mod operator
r = 33 % 6 
# 33 mod 6 = 3
# or when 33 is divided by 6 over integers, the reminder is 3
# 33 = 5 * 6 + 3

# let's print the result
print(r) 

# Booleen variables
t = True
f = False

# let's print their values
print(t,f)

# print their negations
print(not t) 
print("the negation of",t,"is",not t)

print(not f)
print("the negation of",f,"is",not f)

# define a float variable

d = -3.4444

# let's print its value and its square
print(d, d * d)

e = (23*13) - (11 * 15)
print(e)

# we can use more than one variable

# left is the variable for the left part of the expression
# we start with the multiplication inside the parentheses
left = 34*11
# we continue with the substruction inside the parentheses
#     we reuse the variable named left
left = 123 - left
# we reuse left again for the multiplication with -3
left = -3 * left

# right is the variable for the right part of the expression
# we use the same idea here
right = 23 * 15
right = 5 + right
right = 4 * right

# at the end, we use left for the result
left = left + right

# let's print the result
print(left)

#
# your solution is here
#


#
# your solution is here
#


#
# your solution is here
#
