Discuss / Python / 5-14

r = (85-72)/72

print('%.1f' % r)

print('{0:.1}'.format(r))

print(f'{r:.1}')


  • 1

Reply