Match the code with the formatted string it produces.
String formatting
Divide
Report a typo
Match the items from left and right columns
'%.5f' % (100/6)
'{1} divided by {0} equals {2}'.format(6, 100, 100/6)
'{} divided by {} equals {:.5f}'.format(100, 6, 100/6)
'{dividend} / {divisor} = {quotient}'.format(quotient=100/6, divisor=6, dividend=100)
'16.66667'
'100 / 6 = 16.666666666666668'
'100 divided by 6 equals 16.66667'
'100 divided by 6 equals 16.666666666666668'
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.