python how to switch between true and false

Solutions on MaxInterview for python how to switch between true and false by the best coders in the world

showing results for - "python how to switch between true and false"
Nerissa
15 Apr 2016
1myBool = True
2print(myBool)
3myBool = not myBool
4print(myBool)