import os
import time

max_brightness = 26666
stream = os.popen("cat /sys/class/backlight/intel_backlight/brightness")
output = int(stream.read())
print(f"{int(output/max_brightness * 100)}%")

import os
import time

max_brightness = 26666
stream = os.popen("cat /sys/class/backlight/intel_backlight/brightness")
output = int(stream.read())
print(f"{int(output/max_brightness * 100)}%")
