#!/usr/bin/python3
status = 1
# if status == 1:
# status = 0
# else:
# status = 1
status = 0 if status==1 else 1
print(status)
Toggle value between 1 and 0 in Python 3
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.