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 1 of 4
Measure size of string.
len() returns the number of characters in a string, including spaces and punctuation. It is commonly used for validation and loop control.
len("hello") → 5len("hi there") → 8len("") → 0name = input("Username: ")
if len(name) < 3:
print("Too short — at least 3 characters")
else:
print("Welcome, " + name)Specification notes for programming are in Paper 2.