Week 4

mail@pastecode.io avatar
unknown
python
a year ago
236 B
2
Indexable
Never
Task 1
k = str(input())
print(k[0])

Task 3
k = str(input())
print(k[1:len(k)-1])

Task 5
k = str(input())
print(k[1::2])

Task 7
k = str(input())
print(k[::-1])

Task 9
k = str(input())
l = []
for i in k:
    l.append(str(i))
print(l)