Chirurgia cranio-cerebrală minim invazivă
Tehnicile minim invazive impun utilizarea unei tehnologii ultramoderne. Endoscoapele operatorii de diverse tipuri, microscopul operator dedicat, neuronavigația, neuroelectrofiziologia, tehnicile avansate de anestezie, chirurgia cu pacientul treaz reprezintă armamentarium fără de care neurochirurgia prin "gaura cheii" nu ar fi posibilă. Folosind tehnicile de mai sus, tratăm un spectru larg de patologii cranio-cerebrale. www.neurohope.ro |
python-codecademy
Last Updated: Aug 04 2017 19:49, Started by
luminita-
, Aug 04 2017 17:43
·
0
#1
Posted 04 August 2017 - 17:43
Am inceput sa invat Python, iar la urmatoarea cerinta de pe Codecademy nu ma descurc:
First, def a function called distance_from_zero, with one argument (choose any argument name you like). If the type of the argument is either int or float, the function should return the absolute value of the function input. Otherwise, the function should return "Nope" Si iata ce am scris eu: def distance_from_zero(a): if type(a)==int or type(a)==float: return abs(a) else: return "Nope" Eroarea aparuta: It looks like you have an error in your code. Check the error message for more info! - maximum recursion depth exceeded while calling a Python object Unde este greseala? Edited by luminita-, 04 August 2017 - 17:45. |
#3
Posted 04 August 2017 - 19:49
def distance_from_zero(a):
if type(a)==int or type(a)==float: return abs(a) else: return "Nope" Asa ar trebui sa arate. Dai un TAB inainte de cele doua return. |
Anunturi
▶ 0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users