8000
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 88736db commit 8b4d5b1Copy full SHA for 8b4d5b1
Doc/howto/argparse.rst
@@ -732,9 +732,9 @@ your program, just in case they don't know::
732
if args.quiet:
733
print(answer)
734
elif args.verbose:
735
- print("{} to the power {} equals {}".format(args.x, args.y, answer))
+ print(f"{args.x} to the power {args.y} equals {answer}")
736
else:
737
- print("{}^{} == {}".format(args.x, args.y, answer))
+ print(f"{args.x}^{args.y} == {answer}")
738
739
Note that slight difference in the usage text. Note the ``[-v | -q]``,
740
which tells us that we can either use ``-v`` or ``-q``,
0 commit comments