diff options
Diffstat (limited to 'comp/work/13/task.py')
-rwxr-xr-x | comp/work/13/task.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/comp/work/13/task.py b/comp/work/13/task.py new file mode 100755 index 0000000..ca7cd5e --- /dev/null +++ b/comp/work/13/task.py @@ -0,0 +1,14 @@ +def get_name(name): + return name.upper() + + +def get_age(current_age): + return current_age + 1 + +def get_details(name,age): + print(f"the persons name is {get_name(name)}, and next year they will be {get_age(age)}") + +name = input("name: ") +age = int(input("current age: ")) + +get_details(name,age) |