Skip to content

Commit e01bf4f

Browse files
Matthias Köppegrhkm21
andauthored
Modernize Python example
Co-authored-by: grhkm21 <[email protected]>
1 parent a88ddd2 commit e01bf4f

File tree

1 file changed

+1
-1
lines changed
  • src/doc/en/thematic_tutorials/numerical_sage

1 file changed

+1
-1
lines changed

src/doc/en/thematic_tutorials/numerical_sage/mpi4py.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ example. Create a script with the following code in a file ``mpi_1.py``
4040
from mpi4py import MPI
4141
comm = MPI.COMM_WORLD
4242
print("hello world")
43-
print("my rank is: %d"%comm.rank)
43+
print(f"my rank is: {comm.rank}")
4444
4545
To run it you can do (from the command line in your Sage
4646
directory)

0 commit comments

Comments
 (0)