| | | | Question Answer Tutorial - Python->Core Data Types | | | | Question: What are different Keywords in Python? | | Answer: Keywords are special reserved words which convey a special&n bsp;meaning to the compiler/interpreter. Each />keyword have a special meaning and a specific operation.&n bsp;List of Keywords used in Python are: /> True | False | None | and | as | />asset | def | class | continue | break | />else | finally | elif | del | except | />global | for | if | from | import | />raise | try | or | return | pass | />nonlocal | in | not | is | lambda |
| | | | | | | | Question: Which of these in not a core datatype? | | Answer: Class
| | | | | | | | Question: Given a function that does not return any value, What value is thrown by default when executed in shell. | | Answer: None
| | | | | | | | Question: Following set of commands are executed in shell, what will be the output?
>>>str="hello" >>>str[:2] >>>str | | Answer: hello
| | | | | | | | Question: Which of the following will run without error? | | Answer: round(6352.898,2)
| | | | | | | | | | | | |