Advertisement
teslariu

primer clase

Oct 12th, 2021
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3.  
  4. # variable: una posición en memoria que guarda algùn valor
  5. # tipos de datos bàsicos: int(entero), float(float), bool(booleano), str (string)
  6.  
  7. numero = 25 + 14  # esto es una expresión
  8. print(numero, type(numero))
  9.  
  10. numero = "Hola a todos"
  11. print(numero, type(numero))
  12.  
  13. print("La suma de 2+5 es", 2+5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement