C
C
Chipu2016-08-23 20:00:48
Python
Chipu, 2016-08-23 20:00:48

def does not work in Python, how to fix it?

I tried to make my own function and an error occurs.( What am I doing wrong? )
b40db7a998f045199d46e22b92de26a8

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
nirvimel, 2016-08-23
@Chipu

The function is called like this:num()

F
Fellzo, 2016-08-23
@Fellzo

She works. You are trying to refer to a function as an object, in order to call it you should write num ()

M
Matvey Yastremsky, 2016-08-30
@Sollar_MOD

that's right, simple num()and that's it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question