conventions.io

Tech Challenge

2026-10-27

🐍

Daily Tech Challenge

Python

medium
Question 1 of 5

What does this str.ljust / str.rjust code print?

Example
print('ab'.ljust(5, '*'), 'ab'.rjust(5, '-'), 'python'.ljust(3, '*'), sep='|')

Tuesday, October 27, 2026 · A new challenge drops every day