Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What will be the output of the following Python code?
print(“ccdcddcd”.find(“c”))

What will be the output of the following Python code?
print(“ccdcddcd”.find(“c”))
a) 4
b) 0
c) error
d) true

Answer: b
Explanation: The first position in the given string at which the substring can be found is returned.

Join The Discussion