Advertisement
NubeColectiva

Como Verificar Si Una Variable Tiene un Número

Jul 7th, 2023
1,074
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.09 KB | None | 0 0
  1. numero1 = 250
  2. numero2 = 3.14
  3. numero3 = 12,000.45
  4.  
  5. print(isinstance(numero2, float))
  6. # True
Tags: python
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement