FIND OPERATOR / Find position of any Character from any String.

Suppose X is a variable which contains values of String "computer".So, how to find the position of 'p'?

Syntax: Print(X.find("p"))

where X=variable, p=Find positioning value

Program: 

X = ("computer")
print (X.find ("p"))

Output: 3


Input:

Output:

0 comments :

Post a Comment

Cancel Reply

computer books list list of computer science books with authors best computer books for beginners fundamental of computer books pdf free download computer books for dummies best computer hardware books introduction to computer best computer books of all time

Powered by Blogger.

Followers

Search This Blog

Translate