11th May 2020, 9:18 AM
PRO
PRO - avatar
7 odpowiedzi
0
https://code.sololearn.com/czL8KqVbHSRT/?ref=app There was just a bunch of extra stuff in there. This works
11th May 2020, 10:19 AM
Slick
Slick - avatar
+ 1
It works just fine. I copy and pasted in a python environment though. Not sure if that made a difference as yours is in swift
11th May 2020, 9:23 AM
Slick
Slick - avatar
+ 1
Slick yeah man it does....thank u...but wt was incorrect bout my code
11th May 2020, 10:23 AM
PRO
PRO - avatar
+ 1
Its those return calls. They are basically used to make a function equal a value. The functions you wrote dont hold a value. They just print a message if a condition is met. But, when i returned the length of the name in the first function, it made the first function == 10 (with that name as the parameter). Then you were free to basically use the "func" parameter IN the second function as the number 10, because thats what it equals. Thats where i get the line: if func >= 10: ...
11th May 2020, 12:56 PM
Slick
Slick - avatar
+ 1
ohh...i got it....thank you Slick
11th May 2020, 1:09 PM
PRO
PRO - avatar
0
Mirielle and Slick now i changed the ide...actually i expect the code to print "thats too big" when i call the modifier...but thats isnt happening...plz check why
11th May 2020, 9:54 AM
PRO
PRO - avatar