# What is concatenation
#
# first_name = "James"
# middle_name = "Bond"
#
# last_name = input("777")
#
# print(type(last_name))
#
# age = 18
# # Jame Bond 007
#
# print(first_name +" " + middle_name + " " + last_name + " " + str(age))
#
# # Casting is used to cast int to string or the other way around
# # str()
#
# name = input("please enter your name ")
# print("Hello " + name)
#
#
# # get user data
# # display message your age is +
# # address - including post code and fist line of address - house number
# # DOB

# Declaring strings with double and single quotes
# "" as well as ''
# single_quotes = 'single quotes\'wow\''
# print(single_quotes)
# double_quotes = "double quotes 'wow' "
# print(double_quotes)










# String slicing - why -
# indexing in python starts from 0

# greetings = "Hello World!"
# print(len(greetings))
#print(greetings[0:5])

# white_spaces = "lot's of spaces at the end                             "
# print(len(white_spaces))
# print(len(white_spaces.strip()))
# # strip() deletes all the spaces at the end of string

# count() methods it counts the numbers of times any word is available in the string

shopping_list = ["ice cream ", "milk", "coke"]
print(shopping_list)
print(type(shopping_list))
[print(shopping_list[0])]
shopping_list[0] = "shake"
print(shopping_list)

shopping_list.append("bread")
print(shopping_list)
shopping_list.remove("bread")
print(shopping_list)

shopping_list.pop()
print(shopping_list)

mixed_list = [1, 3, "one", "two"]
print(mixed_list)

# print(example_text.count("text"))
# print(example_text)
# print(example_text.replace("with" , ",")) # replace the with and put ,
#
# print(example_text.capitalize())
# print(example_text.upper())
# print(example_text.lower())
