name = "Anna" city = 'Melbourne' print(name) print(type(name)) print(city) print(type(city)) wd = "Wednesday" print(wd[0]) print(wd[3]) print(wd[5]) person1 = "doe" person2 = "Doe" print(person1 == person2) #person1 = person2 print("person1 is now " + person1) print("person2 is now " + person2) print(person1 != person2) txt1 = "Hello " txt2 = "World" txt3 = txt1 + txt2 print(txt3) x = txt3.count("l") print("How many 'l' are there" , x) y = txt3.find("W") print("Where is 'W' located?", y) z = txt3.find("z") print("Where is 'z' located?", z) c = "World" in txt3 print("Is 'World' in txt3?", c) d = "RMIT" in txt3 print("Is 'RMIT' in txt3?", d) print(len(txt3)) number = int(input("Enter a number: ")) print(type(number)) #Class Activity1 #Let us now write code to display details of a car using values entered by the user. car_make = input("Enter the make of the car: ") car_model = input("Enter the model of the car: ") car_year = input("Enter the year of the car: ") print("Car Details:") print("Make:", car_make) print("Model:", car_model) print("Year:", car_year) #Class Activity2 #Let us now write code to do the following:Prompt user to enter two words as String values.Use the operators to compare the two String values string1 = input("Enter the first word: ") string2 = input("Enter the second word: ") print("Are the two words the same?") print(string1 == string2) print("Are the two words different?") print(string1 != string2) #Class Activity3 """ Let us now write code to do the following: • Prompt user to enter a sentence as a String value. • Prompt user to enter a word as a String value. • Use the count() function to search for the specified word in the specified sentence. """ sentence1 = input("Enter a sentence: ") word1 = input("Enter a word: ") count1 = sentence1.count("word1") print("The word", word1, "appears", count1, "times in the sentence.")