# -*- coding: utf-8 -*-
"""
Created on Fri Jan 18 11:23:04 2019

@author: elina
"""

"""
a = 1
b = 2
c = a + b

apples = 20
oranges = 10
fruits = apples + oranges
print(fruits)

a = 2
b = 2
x = b - a
print(x)

print(8.8*12)
"""
# Quick Check 5.1
six = 2 + 2 + 2
neg = six * (-6)
neg /= 10

# Quick Check 5.2
half = 0.25 * 2
other_half = 1.0 - half

# Quick Check 5.3
cold = True
rain = False
day = cold and rain

# Quick Check 5.4
one = "one"
another_one = "1.0"
last_one = "one 1"

# Quick Check 5.7
str(True)  # "True"
float(3)   # 3.0
str(3.8)   # "3.8"
int(0.5)   # 0
int("4")   # 4

# Quick Check 5.8
print(2.25 - 1)  # float
print(3.0 * 3)  # float
print(2 * 4)  # int
print(round(2.01 * 100))   # int
print(2.0 ** 4)  # float
print(2 / 2.0)  # float
print(6 / 4)  # float
print(6 % 4)  # int
print(4 % 2)  # int

print("new section")

# Quick Check 6.1
print(int(456 / 60), ":", 456 % 60)
print(0 / 60, ":", 0 % 60)
print(int(9999 / 60), ":", 9999 % 60)

print("Quick Check 6.3")
stars = 50
print(stars)
stripes = 13
print(stripes)
ratio = stars / stripes
print(ratio)  # float
ratio_truncated = int(ratio)  # int
print(ratio_truncated)
