![]() ![]() Keywords are reserved words carrying special meaning and purpose to the language compiler/interpreter. How are keywords different from identifiers ? Operators - Examples are +, -, >, or, etc.Literals - Examples are "abc", 5, 28.5, etc.Identifiers - Examples are MyFile, _DS, DATE_9_7_77, etc.Keywords - Examples are import, for, in, while, etc. ![]() The smallest individual unit in a program is known as a Token. What are tokens in Python ? How many types of tokens are allowed in Python ? Examplify your answer. True Type A : Short Answer Questions/Conceptual Questions Question 1 String values in Python can be single line strings, and multi-line strings.Ī variable can contain values of different types at different times.Įxpressions contain values/variables along with operators. Variables are created when they are first assigned their value. Variables once assigned a value can be given any other value. The identifiers in Python can begin with an underscore.Ġx12EFG is a legal literal value in Python. Keywords can be used as identifier names. Strings can be created with single quotes, double quotes and triple quotes. To convert an input( )'s value in floating-point type, float( ) function is used. To convert an input( )'s value in integer type, int( ) function is used. The input( ) function returns the read value as of string type. The input( ) function gets the input from the user. The print( ) function prints the value of a variable/expression. In Python, the comments begin with # character. Non-executable, additional lines added to a program, are known as comments. ![]() Question 5Īn expression is a legal combination of symbols that represents a value. Operators are the symbols that trigger some computation or action. Identifiers are the user defined names for different parts of a program. ![]() argument is used.Ī keyword is a reserved word carrying special meaning and purpose. To give a different separator with print( ). The default separator character of print( ) is. To print a line a text without ending it with a newline. To convert the read value through input( ) into a floating point number. To convert the read value through input( ) into integer type. Which of the following functions print the output to the console ? Which of the following can be used to create comments ? The lines beginning with a certain character, and which are ignored by a compiler and not executed, are called. Which of the following is/are expression(s) ? Which of the following symbols are not legal in an octal value ? Which of the following is not a legal integer type value in Python ? Which of the following is an escape sequence for a newline character ? Which of the following is an escape sequence for a tab character ? Which of the following are valid identifiers ?Įscape sequences are treated as. Which of the following is/are correct ways of creating strings ? ĭata items having fixed value are called. Names given to different parts of a Python program are. All vague titles (and content) posts will be removed.Special meaning words of Pythons, fixed for specific functionality are called. Add as many specific keywords as you can in the title (related to your specific situation). In the title, ask exact question which is TLDR/Summary of your post. JEE 2021 Registration Related Queries Rules:ġ.Make the title very informative. I got X marks, which branch can I get? #megathreadĨ. ITAF: Is there anyone from XYZ branch/college #megathreadħ. Monthly Once Sticky : Links to external study / groupsĦ. Send message to moderators by clicking here, if you need any helpĤ. A subreddit for discussions about Indian higher education, research, admissions process, career advice, resource sharing, and other relevant topics. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |