compLib.Battery.
Battery
Used to interact with the battery
percent
Get battery percentage
Percentage between 0 and 100
int
from compLib.Battery import Battery print(Battery.percent())