Advertisement
jabela

Bug Correction - File Storage

Jun 10th, 2019
446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. #Picture Storage Calculator with bugs...
  2. #There are logical errors and syntax errors
  3.  
  4. print("Image Storage requirements for full size images\n")
  5. megapixel = int(input("How many megapixels are your images?")
  6. numberimages = int(input"How many pictures do you have?"))
  7. bytes = megapixel*1000000*3
  8. print(Bytes,"bytes required")
  9. gigabyte = bytes / 1024 / 1024
  10. print(round(gigabytes,1),"Gigabytes required")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement