Question: 1. Assign the string below to the variable in the exercise. It's always darkest before dawn. In [ ]: #Type your answer here. stra print(str)
1. Assign the string below to the variable in the exercise. "It's always darkest before dawn." In [ ]: #Type your answer here. stra print(str) 2. By using first, second and last characters of the string, create a new string. In [ ]: str="It's always darkest before dawn." #Type your answer here. ans_1= print(ans_1) 3. Replace the () with (9) In : str="It's always darkest before dawn." #Type your code here. print(str)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
