Advertisement
qberik

Untitled

Oct 26th, 2022
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. string = input('enter numbers separated by spaces ')
  2.  
  3. array_of_string = string.split()
  4.  
  5. numbers = []
  6. for number_string in array_of_string:
  7. numbers.append( int( number_string ) )
  8.  
  9. print( 'minimal element', min( numbers ) )
  10. print( 'index of minimal element', numbers.index( min( numbers ) ) )
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement