0

I dont get why the string very underweigth always shows up

https://code.sololearn.com/cbHqp2HA6xh2/?ref=app

18th Oct 2018, 1:58 PM
Francisco Fráguas
Francisco Fráguas - avatar
2 Réponses
+ 3
i think its because the function re-declaring ibm variable inside. you can return the ibm variable from the function and assign it to your variable. so the ibm variable that you're trying to compare haven't initialize yet. def funcao(): return weigth / heigth ** 2 ibm = funcao();
18th Oct 2018, 2:13 PM
Taste
Taste - avatar
0
tks it worked perfectly
18th Oct 2018, 2:49 PM
Francisco Fráguas
Francisco Fráguas - avatar