Hi,
I'm new to this forum. I need help in below code.
Output:
I'm getting output as None. Could anyone help me sorting out this problem. Thanks in advance. Looking forward.
I'm new to this forum. I need help in below code.
1 2 |
>>> import keyword >>> print (keyword.kwlist) |
Output:['False', 'None', 'True', 'and', 'as', 'assert', 'async', 'await', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']
I try to sort the output in alphabetical order using the below code1 2 3 |
import keyword a = keyword.kwlist print (a.sort()) |