Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /usr/bin/env python
- #-*- coding: utf-8-*-
- #Calcula todos es resultados possiveis de y=12/x, com x incrementando 0,1.
- y = float()
- x = float(1)
- r = []
- while x <= 12:
- y = 12/x
- a = '%.1f'%(x)
- b = '%.1f'%(y)
- r.append([a,b])
- x = x + 0.1
- print r
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement