#Exercise 1 Given the code below, insert the correct negative index on line 3 in order to get the last character in the string. my_string = "In 2010, someone paid 10k Bitcoin for two pizzas." print(my_string[]) #Exercise 2 Given the code below, insert the correct positive index on line 3 in order to return the comma character from the string. my_string = "In 2010, someone paid 10k Bitcoin for two pizzas." print(my_string[]) #Exercise 3 Given the code below, insert the correct negative index on line 3 in order to return the w character from the string. my_string = "In 2010, someone paid 10k Bitcoin for two pizzas." print(my_string[]) #Exercise 4 Given the code below, insert the correct method on line 3 in order to return the index of the B character in the string. my_string = "In 2010, someone paid 10k Bitcoin for two pizzas." print(my_string.) #Exercise 5 Given the code below, insert the correct method on line 3 in order to return the number of occurrences of the letter o in the string. my_string = "In 2010, someone paid 10k Bitcoin for two pizzas." print(my_string.) #Exercise 6 Given the code below, insert the correct method on line 3 in order to convert all letters in the string to uppercase. my_string = "In 2010, someone paid 10k Bitcoin for two pizzas." print(my_string.) #Exercise 7 Given the code below, insert the correct method on line 3 in order to get the index at which the substring Bitcoin starts. my_string = "In 2010, someone paid 10k Bitcoin for two pizzas." print(my_string.) #Exercise 8 Given the code below, insert the correct method on line 3 in order to check of the string starts with the letter X. my_string = "In 2010, someone paid 10k Bitcoin for two pizzas." print(my_string.) #Exercise 9 Given the code below, insert the correct method on line 3 in order to convert all uppercase letters to lowercase and all lowercase letters to uppercase. my_string = "In 2010, someone paid 10k Bitcoin for two pizzas." print(my_string.) #Exercise 10 Given the code below, insert the correct method on line 3 in order to remove all white spaces from the string. my_string = "In 2010, someone paid 10k Bitcoin for two pizzas." print(my_string.) #Exercise 11 Given the code below, insert the correct method on line 3 in order to replace all the occurrences of letter i with the substring btc. my_string = "In 2010, someone paid 10k Bitcoin for two pizzas." print(my_string.) #Exercise 12 Given the code below, insert the correct method on line 3 in order to split the entire string in two parts, using the comma as a delimiter. my_string = "In 2010, someone paid 10k Bitcoin for two pizzas." print(my_string.) #Exercise 13 Given the code below, insert the correct method on line 3 in order to join the characters of the string using the & symbol as a delimiter. my_string = "In 2010, someone paid 10k Bitcoin for two pizzas." print() #Exercise 14 Given the code below, insert the correct code on line 4 in order to concatenate my_string with the following string: my_other_string = "Poor guy!" my_string = "In 2010, someone paid 10k Bitcoin for two pizzas." my_other_string = "Poor guy!" print() #Exercise 15 Given the code below, insert the correct method on line 3 in order to convert the first letter of each word in the string to uppercase. my_string = "In 2010, someone paid 10k Bitcoin for two pizzas." print(my_string.) #Exercise 16 Given the code below, use string formatting with the % operator on line 3 to map the values of 2010, 10k and Bitcoin to the corresponding formatting operators. my_string = "In %s, someone paid %s %s for two pizzas." print() #Exercise 17 Given the code below, use string formatting with the format() method on line 3 to map the values of 2010, 10k and Bitcoin to the corresponding formatting operators. my_string = "In {}, someone paid {} {} for two pizzas." print() #Exercise 18 Given the code below, use slicing and insert the correct code on line 3 in order to return the substring 2010 from the string. Use positive indexes! my_string = "In 2010, someone paid 10k Bitcoin for two pizzas." print() #Exercise 19 Given the code below, use slicing and insert the correct code on line 3 in order to return the substring Bitcoin from the string. Use negative indexes! my_string = "In 2010, someone paid 10k Bitcoin for two pizzas." print() #Exercise 20 Given the code below, use slicing and insert the correct code on line 3 in order to return the first 12 characters in the string. Use a single, positive index! my_string = "In 2010, someone paid 10k Bitcoin for two pizzas." print() #Exercise 21 Given the code below, use slicing and insert the correct code on line 3 in order to return the last 9 characters of the string. Use a single, negative index! my_string = "In 2010, someone paid 10k Bitcoin for two pizzas." print() #Exercise 22 Given the code below, use slicing and insert the correct code on line 3 in order to return the entire string in reversed order. my_string = "In 2010, someone paid 10k Bitcoin for two pizzas." print() #Exercise 23 Given the code below, use slicing and insert the correct code on line 3 in order to return every 7th character of the string, starting with the first character. The final result should be: I,n top my_string = "In 2010, someone paid 10k Bitcoin for two pizzas." print() #Exercise 24 Given the code below, use slicing and insert the correct code on line 3 in order to return the string except the first 10 characters. Use a single, positive index! my_string = "In 2010, someone paid 10k Bitcoin for two pizzas." print() #Exercise 25 Given the code below, use slicing and insert the correct code on line 3 in order to return the string except the last 4 characters. Use a single, negative index! my_string = "In 2010, someone paid 10k Bitcoin for two pizzas." print()