""" Let us now write code to do the following: • Create a variable with a string value. • Use the if statement to check if the value of the variable matches a specified word string1 = input("Enter a string: ") correctword = "Cat" print(string1 == correctword) if string1 == correctword: print("That's correct") print("Good job") else: print("Better luck next time") print("Bye") Create a variable with an integer value. • Use the if...else statement to print out if the value of the variable is greater than or equal to a specified number. Otherwise, print out that the value of the variable is less than the specified number. anumber = int(input("Enter a number: ")) if anumber >= 100: print("The number is greater than 100") else: print("The number is less than 100") print("Bye!") Let us now write code to do the following: • Create a variable with a String value. • Use the if...else statement to print out messages saying if the value of the variable matches a specified word or not. Let us now write code to do the following: • Create a variable with an integer value. • Use the if statement with the and operator to check if the value of the variable is between 1 and 100 (inclusive). Use the if statement with the or operator to check if the value of the variable is either 15 or 30. if num >= 1 and num <= 100: print("It's within the range") print("Number is :" ,num) else: print("Invalid number") if num == 15 or num == 30: print("The value is either 15 or 30") print("Number is :" ,num) else: print("Invalid number") """ num = int(input("Enter a number from 1 to 100: ")) if not(num < 1 or num > 100): print("It's within the range") print("Number is :" ,num) else: print("Invalid number")