This file contains 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
while True: | |
num = float(input("Number: ")) | |
def is_div(number): | |
return(number).is_integer() | |
for i in range(1, int(num)): | |
result = is_div(num / i) | |
if result == True: | |
print(int(num / i)) |
This file contains 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
import datetime | |
left = input("Left (MB): ") | |
speed = input("Speed (MB/S): ") | |
result = (int(left) / int(speed)) | |
if (result >= 3600): | |
result = result / 60 / 60 | |
print(round(result, 2), " Hours Left") | |
elif (result >= 60): | |
result = result / 60 | |
print(round(result, 2), " Minutes Left") |