Python Fundamentals Training - Tools

preview_player
Показать описание

In this session, Simeon is going to give you some tours of the standard libraries, modules, and tools.

Рекомендации по теме
Комментарии
Автор

How can i return a float using a function?
This is my code:
import numpy as np
def function (x = 0.1):
function = 2*np.sin(x)-((x)^2)/10
return function

And this the TypeError:

function = 2*np.sin(x)-((x)^2)/10
TypeError: unsupported operand type(s) for ^: 'float' and 'int'

Thank you for your help!

savlatam
Автор

cannot find the playlist for this series

Z-add
welcome to shbcf.ru