Robotics & Artificial Intelligence

Predict the output of the following snippet:

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

Python Functions

3 Likes

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

2 Likes


Related Questions