MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/pythonhelp/comments/p7xxfo/can_you_help_me_with_my_function/h9ro72b/?context=3
r/pythonhelp • u/FarEffect5729 • Aug 20 '21
4 comments sorted by
View all comments
2
As mentioned earlier use isdigit() to check if input is an int.
You're using x and name interchangeably just take out x altogether and put name as function parameter
I prefer f strings for formatting Print(f"name is {name}....")
2
u/robohobo- Aug 21 '21
As mentioned earlier use isdigit() to check if input is an int.
You're using x and name interchangeably just take out x altogether and put name as function parameter
I prefer f strings for formatting Print(f"name is {name}....")