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 cimport dishes
from dishes cimport spamdish from dishes cimport spamdish
...@@ -8,4 +9,4 @@ cdef void prepare(spamdish *d): ...@@ -8,4 +9,4 @@ cdef void prepare(spamdish *d):
def serve(): def serve():
cdef spamdish d cdef spamdish d
prepare(&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