5,321
edits
Line 64: | Line 64: | ||
print('Hello {}! This is {}.'.format(name, program)) | print('Hello {}! This is {}.'.format(name, program)) | ||
print('Hello {name}! This is {program}.'.format(name=name, program=program)) | print('Hello {name}! This is {program}.'.format(name=name, program=program)) | ||
# Format to two decimal places | |||
print(f"Accuracy: {accuracy:.02f}%") | |||
</syntaxhighlight> | </syntaxhighlight> | ||