## 1. Saving Values ##

result = (42 - 11) * 22
print(result)

## 2. Variables ##

a_value = 15
a_result = (25 - 7) * 17
print(a_value)
print(12 + a_result)
print(a_value + a_result)

## 3. Variable Names ##

# INITIAL CODE
old_income = 34000
new_income = 40000

## 4. Updating Variables ##

income = 34000
x=6000
print(income + x)

income = income + x
print(income)

## 5. Syntax Shortcuts ##

variable_1 = 20
variable_2 = 20
variable_2 += 10
variable_1 *= 4

print(variable_1)
print(variable_2)

## 6. Integers and Floats ##

variable_1 = 10
variable_2 = 2.5
variable_1 += 6.5
variable_2 *= 2

print(variable_1)
print(variable_2)

## 7. Conversion Between Types ##

variable_a = 13.9
variable_b = 2.8
round(variable_a)
variable_a = round(variable_a)

int(variable_b)
variable_b = int(variable_b)

print(variable_a)
print(variable_b)

## 8. Strings ##

app_name = "Pandora - Music & Radio"
average_rating = "4.0"
total_ratings = "1724546"
price = "free"
print(app_name)

## 9. Escaping Special Characters ##

motto = 'Facebook\'s new motto is "move fast with stable infra."'
print(motto)

## 10. String Operations ##

fb_rating = float(3.5)
str(fb_rating)
fb_rating_str = str(fb_rating)

print('''Facebook's ''' + 'rating ' + 'is ' + fb_rating_str)