Advertisement
Guest User

Franco_ejercicio03

a guest
Mar 30th, 2020
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. # 3. Pedir un número e indicar si es positivo o negativo.
  2.  
  3. numero = float(input('Por favor introduzca un número: '))
  4. if numero >= 0:
  5.     print('El número es positivo')
  6. else:
  7.     print('El numero es negativo')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement