We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c053284 commit 1fd20d0Copy full SHA for 1fd20d0
Doc/howto/argparse.rst
@@ -761,9 +761,9 @@ your program, just in case they don't know::
761
if args.quiet:
762
print(answer)
763
elif args.verbose:
764
- print("{} to the power {} equals {}".format(args.x, args.y, answer))
+ print(f"{args.x} to the power {args.y} equals {answer}")
765
else:
766
- print("{}^{} == {}".format(args.x, args.y, answer))
+ print(f"{args.x}^{args.y} == {answer}")
767
768
Note that slight difference in the usage text. Note the ``[-v | -q]``,
769
which tells us that we can either use ``-v`` or ``-q``,
0 commit comments