Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding:UTF-8 -*-
- #Divisão em python. #Compatibilidade: py2 e py3
- from __future__ import print_function #Compatibilidade func print python 2/3
- from sys import version_info
- print('Voce esta na versao:', '.'.join(str(x) for x in version_info[0:3]))
- print (' 3/2 == 1.5 ', 3 / 2 == 1.5)
- print (' 3/2 == 1 ', 3 / 2 == 1)
- print (' 3//2 == 1.5 ', 3 / 2 == 1.5)
- print (' 3//2 == 1 ', 3 / 2 == 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement