You are viewing a single comment's thread. Return to all comments →
import math import os import random import re import sys
if name == 'main': timeCharged = float(input().strip()) timeLast = timeCharged * 2 if timeLast > 8: timeLast = 8 print(timeLast)
Seems like cookies are disabled on this browser, please enable them to open this website
Laptop Battery Life
You are viewing a single comment's thread. Return to all comments →
!/bin/python3
import math import os import random import re import sys
if name == 'main': timeCharged = float(input().strip()) timeLast = timeCharged * 2 if timeLast > 8: timeLast = 8 print(timeLast)