# -*- coding: utf-8 -*-
"""
Created on Tue Sep  1 16:14:39 2020

@author: dooseop
"""

# some_condition = False

# if some_condition:
#     print('True')
# else:
#     print('False')

# temp = int(input('Please Enter the temperature in Celsius: '))

# if temp > 30:
#     print('Wear shorts and sun cream!')
# elif temp <= 30 and temp > 20:
#     print('It\'s warm, but not shorts weather!')
# elif temp <= 20 and temp > 10:
#     print('You\'ll probably need a vest today!')
# else:
#     print('Too cold!')


my_string = 'Python'

# length of string
print(len(my_string))

# string indexing
print(my_string[0])

# minus indexing
print(my_string[-1]) # last character

# string slicing
print(my_string[0:4])
print(my_string[:4])

# upper(), lower()
print(my_string.upper())
print(my_string.lower())