python-by-example-150-chall.../challenges20-26/challenge-023.py
2019-07-17 09:56:46 +03:00

5 lines
269 B
Python

rhyme = str(input('Enter the 1st. line of nursery rhyme : '))
start = int(input('Enter start number for display : '))
end = int(input('Enter end number for display : '))
print('this is the 1st. line \n {0} \n and this is truncated {1}'.format(rhyme, rhyme[start:end]))