So you think [1,2]*2 = [2,3]? Think harder you dumb nigger! Because in Python [1,2]*2 == [1,2,1,2]
Name:
Anonymous2022-11-01 15:10
In C we have 0 as false value in conditionals, 0 as no error occurred return value in functions, AND 0 as true value in the shell.
In other words, you need to either employ a special syntax, or invert your idea of Boolean algebra. Congrats! You now have a 0 mean both true and false!! Fabulous logic, Bell Labs!
Sidenote: 0/1/2/Etc... were never intended to be used as booleans or characters, but instead to mean numbers, like a date of birth or post number.