Robotics & Artificial Intelligence

Predict the output of the following snippet:

wd="Robotics"
print(len(wd))

Python Functions

1 Like

Answer

Output
8
Explanation

The len() function returns the number of characters in the string. The string "Robotics" contains 8 characters (R, o, b, o, t, i, c, s), so the output is 8.

Answered By

3 Likes


Related Questions