Advertisement
Talilo

ordenação_valores.py

Mar 16th, 2023 (edited)
535
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. #ORDENAÇÃO SIMPLES DE UMA LISTA DE 2 VALORES em python
  2. #Usandoo variavel AUX
  3.  
  4. numeros = [55,12]
  5.  
  6. if numeros[0] > numeros[1]:
  7.     aux = numeros[0]
  8.     numeros[0] = numeros[1]
  9.     numeros[1] = aux
  10.     print(numeros)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement