๐ค Advanced Typing
f-string Format Spec
Padding, precision, binary, hex โ all inline.
f-strings accept a format spec after :. >8 right-aligns in width 8, 6.2f is float with 2 decimals in width 6, 08b is 8-digit binary with zero-padding.
๐ค Advanced Typing
Padding, precision, binary, hex โ all inline.
f-strings accept a format spec after :. >8 right-aligns in width 8, 6.2f is float with 2 decimals in width 6, 08b is 8-digit binary with zero-padding.
Press Run to execute.Ada | 91.26 00101010
Sign in to track your progress across lessons.