I want to test whether the letter a appears more than once in my string employee_name.
I have tried this code :
if 2*"a" in employee_name:
    return a
This did not work. What am I doing wrong?
I want to test whether the letter a appears more than once in my string employee_name.
I have tried this code :
if 2*"a" in employee_name:
    return a
This did not work. What am I doing wrong?
 
    
     
    
    if employee_name.count("a") >= 2:
Any time you need to know a bit more about a straightforward access or check, just repeat the tutorial on that topic. I often find things I'd forgotten.
