Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- #
- for numero in range(11): # inicio 0 (default), tope 11, salto 1 (default)
- print(numero, numero**2)
- print()
- for numero in range(5,11): # inicio 5, tope 11, salto 1 (default)
- print(numero, numero**2)
- print()
- for numero in range(-2,84,11): # inicio -2, tope 84, salto 11
- print(numero, numero**2)
- """
- range(tope) inicio por default igual a 0, salto por default igual a 1
- range(inicio, tope) salto por default igual a 1
- range(inicio, tope, salto)
- """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement