Question: 1. In Python what statement would print out the first two elements Li of Lizz? print(name[2:01) print(name[0:21) Oprint(name[1:2]) 2. If var = 01234567 what Python
2. If var = "01234567" what Python statement would print out only the odd elements? print(var[2:2]) print(var[1:2]) print(var[3:1)
3. Consider the string Name="EMILY", what statement would return the index of 3? Name.find("Y") Name.find("L") Name.find("M")
4. in Python what can be either a positive or negative number but does not contain a decimal point? str int float
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
