mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
Use str.format for the demo
This commit is contained in:
1 file changed
+1
-1
@@ -19,7 +19,7 @@ n2 = 1
|
||||
count = 0
|
||||
until = 10
|
||||
|
||||
print("These are the first " + str(until) + " number in a Fibonacci sequence:")
|
||||
print("These are the first {} numbers in a Fibonacci sequence:".format(until))
|
||||
|
||||
while count < until:
|
||||
print(n1)
|
||||
|
||||
Reference in new issue
Block a user