String manipulation (Edexcel GCSE Computer Science): Flashcards

📚Flashcards
String manipulation
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

14 cards from this deck

Show

What is a string?

A sequence of characters

What does len() do?

Counts characters in a string

What does find() return if text not found?

-1

What does find() return if text is found?

Position where it first finds the text

What does upper() do?

Converts string to uppercase

What does lower() do?

Converts string to lowercase

What does replace() do?

Swaps one piece of text for another

What do query functions return?

True or False answers

When does isalpha() return True?

String contains only alphabetic characters

When does isalnum() return True?

String contains only letters and numbers

When does isdigit() return True?

String contains only numerical digits

When does isupper() return True?

All letters in string are uppercase

When does islower() return True?

All letters in string are lowercase

What does len() return for an empty string?

0

Join 100,000+ GCSE students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.