1 2 3 4 5 6 7 8 9 10
#!/usr/bin/python from zypp import ByteCount print ByteCount(ByteCount.G) print ByteCount(ByteCount.GB) x = ByteCount(ByteCount.K) print int(x)