Uzyskaj liczbę losową pozytywną lub ujemną Python

import random
return 1 if random.random() < 0.5 else -1
Flying Donkey