What do you want to save?
Add Code snippet
New code examples
-
Python 2021-08-26 11:07:02
Python Booleans
a = True # dont forget capital T and F, it is case sensitive b = False if b == True: print("b is true") if b: print("b is true") # this is the shorthand of the above IF statement if b == False: print("b is false")... Add solution -
Python 2021-08-26 11:02:04
difference between args and kwargs in python
>>> def argsKwargs(*args, **kwargs): ... print(args) ... print(kwargs) ... >>> argsKwargs('1', 1, 'slgotting.com', upvote='yes', is_true=True, test=1, sufficient_example=True) ('1', 1, 'slgotting.com') {'upvote': 'yes', 'is_true... Add solution