Signed up recently but had issues with the confirmation email?
Click Forgot password and follow the reset steps. You can choose the same password you used when you signed up. This should then provide access.
Remember to check Spam and Junk. The email will be from auth@progressbytes.co.uk.
301.11 String Manipulation
Practise exam questionsString Manipulation — Note 4 of 4
Check patterns in text.
String methods like .isalpha(), .isdigit(), and .isalnum() check whether a string contains only certain types of characters. They return True or False.
.isalpha() — True if all letters.isdigit() — True if all digits.isalnum() — True if letters or digits onlyFalse for all checkspostcode = input("Postcode: ")
if postcode.isalnum() and len(postcode) >= 5:
print("Valid format")
else:
print("Invalid postcode")Specification notes for programming are in Paper 2.