python is str code example
Example 1: if type is string python
isinstance(s, str)
Example 2: str(n)
for x in range(0,len(no)):
rotation = no[x:len(no)] + no[0:x]
if not prime(int(rotation)) :
return False
return True
isinstance(s, str)
for x in range(0,len(no)):
rotation = no[x:len(no)] + no[0:x]
if not prime(int(rotation)) :
return False
return True