Python Forum
differences between py2 and py3
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
differences between py2 and py3
#1
this code, using new division in both Python2 and Python3, shows there are still differences.
from __future__ import division,print_function
efs = 9007199254739968 * 1024
print(str(efs/(2**10)),'kB kilo bytes')
print(str(efs/(2**20)),'MB Mega bytes')
print(str(efs/(2**30)),'GB Giga bytes')
print(str(efs/(2**40)),'TB Tera bytes')
print(str(efs/(2**50)),'PB Peta bytes')
print(str(efs/(2**60)),'EB Exa bytes')
FYI, this is the size of a filesystem available in the AWS cloud. i have never been able to fill it up.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
differences between py2 and py3 - by Skaperen - Feb-06-2018, 05:02 AM
RE: differences between py2 and py3 - by gjenkinslb - Feb-06-2018, 07:43 AM
RE: differences between py2 and py3 - by Skaperen - Feb-07-2018, 03:08 AM
RE: differences between py2 and py3 - by casevh - Feb-10-2018, 07:00 AM
RE: differences between py2 and py3 - by Skaperen - Feb-10-2018, 09:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Windows/Power Shell: Differences from the tutorial... diemildefreude 22 20,138 Oct-10-2016, 03:36 AM
Last Post: diemildefreude

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020