Equation with icognits | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Equation with icognits

How can i make an equation a with icognits in py3 like: t = t² + 2t + 5 it asks me what is the value of 't', that i discover using this equation and i need to find this value.

13th Apr 2019, 5:42 PM
Pedro Nunes
Pedro Nunes - avatar
5 Answers
+ 6
Tried this? def f(t): return t**2 + 2*t + 5
13th Apr 2019, 5:45 PM
Шащи Ранжан
Шащи Ранжан - avatar
+ 3
Pedro Nunes just the name of the function.
13th Apr 2019, 5:48 PM
Шащи Ранжан
Шащи Ранжан - avatar
0
THANK YOUUUUUUUUUU
13th Apr 2019, 5:45 PM
Pedro Nunes
Pedro Nunes - avatar
0
wait, what that single "f" means?
13th Apr 2019, 5:46 PM
Pedro Nunes
Pedro Nunes - avatar
0
okay thank you very muchhh
13th Apr 2019, 5:49 PM
Pedro Nunes
Pedro Nunes - avatar