Govt. Exams
Entrance Exams
The 'def' keyword is used to define a function in Python. Other options are not valid Python keywords.
The division operator (/) in Python 3 always returns a float, even if both operands are integers.
Python comments start with # and can appear anywhere. Multi-line comments use triple quotes or multiple # symbols.
The string 'Python' has 6 characters: P, y, t, h, o, n. The len() function returns the number of characters.
The 'def' keyword is used to define functions in Python. It is followed by the function name and parameters.
5.0 is a floating-point number in Python. The type() function returns <class 'float'> for decimal numbers.
Python identifiers cannot start with a digit. They must begin with a letter or underscore.
Python variables are created using the assignment operator (=) with valid identifiers containing letters, digits, and underscores.