Step through String Items : String In « String « Python






Step through String Items

Step through String Items
 
myjob = "hacker"
for c in myjob: print c,       # step though items



           
         
  

Related examples in the same category

1.Demonstrates the len() function and the in operator
2.Is a character inside a stringIs a character inside a string