5,321
edits
Line 58: | Line 58: | ||
print(f'Hello {name}! This is {program}') | print(f'Hello {name}! This is {program}') | ||
print("%s %s" %('Hello','World',)) | print("%s %s" % ('Hello','World',)) | ||
name = 'world' | name = 'world' | ||
program ='python' | program ='python' | ||
print('Hello {name}!This is{program}.'.format(name=name,program=program)) | print('Hello {}! This is {}.'.format(name, program)) | ||
print('Hello {name}! This is {program}.'.format(name=name, program=program)) | |||
</syntaxhighlight> | </syntaxhighlight> | ||