Back to Browse

Python Shell Session - String Formatting

45 views
Aug 7, 2024
6:32

Python Shell Session to do string formatting such as displaying numbers in binary, hexadecimal or octal format using f-strings or the format method in strings. Number formatting to 2 decimal places. Comma separator for large numbers such as 3309. Scientific format for numbers. Aligning text to the centre, right or left. Fill character of - and width of column to be 20 characters.

Download

0 formats

No download links available.

Python Shell Session - String Formatting | NatokHD