Use str.format for the demo

This commit is contained in:
coolreader18 committed 2018-12-24 15:28:49 -06:00
1 parent 840c5072fb
commit ab23f2c940
1 file changed
+1 -1
+1 -1
View File
@@ -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)