错误:解析时意外的EOF - 它在Python中是什么?

pra*_*uan -3 python

我在这里做错了什么?我是python的初学者,所以想使用modulo

import math 
x = int(input("Type number x: "))
y = int(input("Type number for y:")) 
print(math.fmod(x % y))
Run Code Online (Sandbox Code Playgroud)

下一个:

def modulo(x, y):                        
    return math.fmod(x ,y)
Run Code Online (Sandbox Code Playgroud)

在使用此代码期间,我收到如下错误:

>    print(math.fmod(x % y)) <br>
TypeError: fmod expected 2 arguments, got 1
Run Code Online (Sandbox Code Playgroud)

tgl*_*ria 5

只需更改math.fmod()函数的输入:

import math 
x = int(input("Type number x: "))
y = int(input("Type number for y:")) 
print(math.fmod(x, y))
Run Code Online (Sandbox Code Playgroud)