Created
March 20, 2021 10:05
-
-
Save AnisahTiaraPratiwi/3ff749a9ff6c9cbee073a717bb23ed3b to your computer and use it in GitHub Desktop.
Most hard drives are divided into sectors of 512 bytes each. Our disk has a size of 16 GB. Fill in the blank to calculate how many sectors the disk has. Note: Your result should be in the format of just a number, not a sentence.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
disk_size = 16*1024*1024*1024 | |
sector_size = 512 | |
sector_amount = (((16*1024*1024*1024)/512)) | |
print(sector_amount) |
Line 3 should be "sector_amount = ((disk_size/sector_size))"
@KadaHawa it's the same
Thank you, it is very helpful.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thank you so much. it was really helpfull