Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string = input('enter numbers separated by spaces ')
- array_of_string = string.split()
- numbers = []
- for number_string in array_of_string:
- numbers.append( int( number_string ) )
- print( 'minimal element', min( numbers ) )
- print( 'index of minimal element', numbers.index( min( numbers ) ) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement