Question: 1. Suppose the following variable is defined: s = Hello World What Python expression would you use to obtain a smaller string starting at the
1. Suppose the following variable is defined:
s = "Hello World"
What Python expression would you use to obtain a smaller string starting at the second letter (in the example, it would give you "ello World")?
Enter your answer without any spaces.
2.
Suppose the following variable is defined:
s = "Hello World"
What Python expression would you use to obtain just the first character? (in the example, it would give you "H")?
Enter your answer without any spaces.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
