Thanks!
It works fine, but when I tried to make a different little project with it, an error I can't understand the cause of keeps popping up:
from objc_util import *
import console
UIScreen = ObjCClass('UIScreen')
screen = UIScreen.mainScreen()
x=input()
words=x.split()
if words[0].lower() == "set":
second_word = x.split()[1]
float(second_word)
screen.setBrightness_(second_word)
For this little project, I just want to be able to input some text and check if it says set and has a decimal number (like 0.9) after it. Then I want to convert that 0.9 to a float to be used to set the screen brightness to 0.9. When I tell it to run and type in exactly what's necessary, nothing happens. What could I be doing wrong?