Commit 27da4152 authored by gabrieldemarmiesse's avatar gabrieldemarmiesse

Added the future import and the f-string formatting.

parent 1e9150cc
from __future__ import print_function
cimport dishes
from dishes cimport spamdish
......@@ -8,4 +9,4 @@ cdef void prepare(spamdish *d):
def serve():
cdef spamdish d
prepare(&d)
print(d.oz_of_spam, "oz spam, filler no.", d.filler)
print(f'{d.oz_of_spam} oz spam, filler no. {d.filler}')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment