# print('Feb 03 2021')
# print('0----')
# print(' ||||')
# print('*' * 10)
#
#
# a = 10
# b = 20
# add = a+b
# print(add)
# print("Addition of two numbers a and b is:",add)
#
#
# price = 10
# price = 20
# print(price)
#
#
# full_name = 'Prerana Pandit'
# age = 25
# is_new = True
# print(full_name)
# print(age)
# print(is_new)
# print("Full Name: " + full_name)









# INPUT

# name = input('What is your name? ')
# print('Hi ' + name)
#
#
# person_name = input('What is your name? ')
# fav_color = input('What is your favorite color')
# print(person_name + ' likes ' + fav_color)



# birth_year = input('Birth Year: ')
# print(type(birth_year))
# age = 2021 - int(birth_year)
# print(type(age))
# print(age)



# Ask user a weight in pounds and convert it into kilograms and print in the terminal

# weight_lbs = input('Weight in lbs: ')
# weight_kg = int(weight_lbs) * 0.45
# print(weight_kg)


# Python Strings

# course = "Python's Course for Beginners"
# print(course)
#
# course1 = 'Python for "Beginners"'
# print(course1)
#
#
# hello = '''
#     Hello John,
#
#     Nice to meet you!.
#
#     The support team,
#     MS OFFICE
# '''
#
# print(hello)

#
# course = 'Python'
# print(course[0])
#
#
# course = 'Python'
# print(course[0:3])
# print(course[1:])
#
# another_copy_course = course[:]
# print(another_copy_course)
#
#
# ## ecludes last one that is -1 (think about output first)
#
# name = 'Jennifer'
# print(name[1:-1])
#


# # Formatted Strings
#
# first_name = 'John'
# last_name = 'Smith'
#
# message = first_name + ' [' + last_name + '] is a coder'
# print(message)
#
# msg = f'{first_name} [{last_name}] is a coder'
# print(msg)
#
#
# #
# # String Methods
#
# # Use of len -- counts the numbers of items or characters
#
# course = 'Python for beginners'
# print(len(course))
#
#
# # . [DOT operators :: methods calling]
#
#
# course = 'python for beginners'
# print(course)
#
# # all in upper case using .upper operator
# print(course.upper())
#
# uppercase_course = course.upper();
# print(uppercase_course)
#
# # all in lower case using .lower operator
# print(uppercase_course.lower())
#
#
# # Use of .find operator -- for finding the character or even a word  (if no word is used the output will be -1)
#
# find_operator = 'Python for Beginners'
# print(find_operator.find('P'))
# print(find_operator.find('L'))
# print(find_operator.find('o'))
# print(find_operator.find('n'))
# print(find_operator.find('Beginners'))




# # Use of .replace operator -- for replacing the word as shown
#
# replace_word = 'Python for new students'
# print(replace_word.replace('students', 'faculties'))
# print(replace_word.replace('STUdents', 'study'))
# print(replace_word.replace('P', 'K'))
#
# # replaces all n characters to s
# print(replace_word.replace('n', 's'))


#
#
# ## Check words in the string value using the boolean function where output will be either 'True' or 'False'
#
# coursework = 'Python studying by batches'
# print('Python' in coursework)
# print('was' in coursework)




# s = 'PythonSolution'
# print(s[1:10:2])
#
# a,b = 30,20
# print("a + b = ", a+b)
# print("a - b = ", a-b)
# print("a * b = ", a*b)
# print("a / b =", a/b)
# print("a % b = ", a%b)
#
# print("a // b = " , a // b)
# print("a ** b = " , a ** b)






# ARITHMETIC OPERTAORS

x = 10
x = x + 3
print(x)

Y = 10
Y += 3
print(Y)

a = 5
c = a ** 3
b = a * 2
print(c)
print(b)


# Operator Precedence

opt = (10+5) *2 +5
print(opt)



# Math Functions

x = 2.9
print(round(x))

print(abs(-2.9))







































