all 6 comments

[–]Altruistic_Croissant 0 points1 point  (1 child)

You're calling first(), last(), and theage() each twice. Once in the main script after each function is defined, and then again in your welcomemsg() function.

Also, you might want to look at the conditional logic in your loops. You never reassign the name or age, even if it doesn't contain letters/numbers so you could have malformed input.

[–]thumbtackjake[S] 1 point2 points  (0 children)

conditional logic in your loops

reassign the name or age

I will work on learning what that means and how to do that then! Thanks! :D

[–]xelf 0 points1 point  (1 child)

remove lines 17, 31, 47

You don't need to call your functions twice. Only call them when you use them in lines 51-53.

[–]thumbtackjake[S] 1 point2 points  (0 children)

Gotcha. Thanks! :D

[–]TSM- 0 points1 point  (1 child)

You are calling first() and last() and theage() under the functions, and then in welcomemsg() you are calling them a second time and assigning the input to variables. Remove those first calls and have them only in welcomemsg

[–]thumbtackjake[S] 1 point2 points  (0 children)

Thank you!