Machine Learning MCQS - QUESTION DETAILS

What will be the output of the code: print(len("Python"))?
A. 6
B. 7
C. 5
D. 10

The 'len()' function returns the length of the string, which is 6 characters in "Python".

Similar Questions

Which of the following statements is used to read input from the user in Python?






What will be the output of the code: print("Python"[::2])?






What will be the output of the code: print("Python"[::-1])?






What will be the output of the code: print("Hello" * 3)?






Which of the following best describes Python's approach to code readability?






Which version of Python introduced the 'async' and 'await' keywords for asynchronous programming?






Which Python release introduced the 'walrus' operator (':=')?






What was the name of the programming language that inspired Guido van Rossum to create Python?






Which of the following is NOT a core principle of Python's design philosophy?






Which programming language heavily influenced the design of Python?