Python - Input and Output
What is the output of the following code?
print('X', 'Y', sep='-', end='***')
print('Z')print('X', 'Y', sep='-', end='***')
print('Z')sep='-' inserts a dash between 'X' and 'Y'.end='***' appends three asterisks instead of a newline after printing 'X-Y'.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions