python

python.

Write a program that reads an integer (greater than 0) from the console and flips the digits of the number, using the arithmetic operators // and %, while only printing out the even digits in the flipped order. Make sure that your program works for any number of digits.

Write a program that takes the size of a file (in bytes) as input from the user and converts it to the nearest whole number binary prefix (B for byte, KB for kilobyte, MB for megabyte, GB for gigabyte), rounded down. Any file sizes greater than 1024 GB should just be converted to GB. Remember that there are 2^10 bytes in a kilobyte (not 1000), 2^20 bytes in a megabyte, and 2^30 bytes in a gigabyte.

python