f当てたいって知らんけど
こういうことなの
def printvar(var):
print('var is {}'.format(var))
printvar(1)

>>931
pycをbashで実行したら同じエラーがでた