Tagged: string-methods

Everything tagged "string-methods", newest first.

Coding Practice ·

Python Coding Exercise #61: A Framed Word

A beginner Python exercise on string methods and string multiplication — print a word in the centre of a 30-character frame of asterisks, using center() and a manual version with len() and floor division.

Blog ·

String Methods in Python: A Beginner's Guide

A beginner-friendly guide to Python's string methods — what each one does, with simple examples for changing case, trimming, aligning, searching, replacing, splitting, joining, checking and formatting text.

Coding Practice ·

Python Coding Exercise #60: Right-Aligned

A beginner Python exercise on string methods — print a string so that exactly 20 characters are shown, filling the start with asterisks, using rjust() and a manual version with len() and string multiplication.

All tags