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

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 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!