From 9d1c82225a9758db7cccecc63f611a9c1a29d3b9 Mon Sep 17 00:00:00 2001 From: himanshu07070 <36814920+himanshu07070@users.noreply.github.com> Date: Fri, 14 Dec 2018 04:19:57 +0530 Subject: [PATCH] Update index.md (#30140) changes in the output --- guide/english/python/keywords/index.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/guide/english/python/keywords/index.md b/guide/english/python/keywords/index.md index 36b954b448..bb573230e1 100644 --- a/guide/english/python/keywords/index.md +++ b/guide/english/python/keywords/index.md @@ -7,14 +7,25 @@ Keywords are the reserved words present in all programming languages .Python has keywords that cannot be used as function names or identifiers (variable names) .Python is a dynamic language , so the list of keywords may change in future. Currently, there are 33 keywords in Python 3.3 . Trying to use any of these keywords as variables will create a Syntax Error and your Python script will not run: >>> False = "Hello campers!" - File "" + File "", line 1 + False = "Hello campers!" + ^ SyntaxError: can't assign to keyword >>> break = "Hello campers!" - File "", line 1 + File """", line 1 break = "Hello campers!" ^ SyntaxError: invalid syntax + + >>> class = "Hello campers!" + File "", line 1 + class = "Hello campers!" + ^ + SyntaxError: invalid syntax + + + #### List of Keywords