<b>print</b>("Hey-yo! \nLet's get acquainted:\n")
<i>def</i> <b>data</b>():
name=(input("Your Nickname: \n"))
array = <i>False</i>
<i>while</i> not array:
<i>try</i>:
age=int(input("Your age: \n"))
array = <i>True</i>
<i>except</i> ValueError:
<b>print</b>('Dude, you must enter a number in age-field. Try again. ')
<b>return</b> {'name': name, 'age': age}
user = <b>data</b>()
<i>def</i> <b>doebis_do_vozrasta</b>():
<i>if</i> user['age'] >= 18:
<b>print</b>('Пенсионерушка? Гы-гыг \n')
<i>else</i>:
<b>print</b>('Юн и полон сил, значит? Хе-хе \n')
<b>doebis_do_vozrasta</b>()
<i>def</i> <b>say_hello</b>():
<b>print</b>(f"So! \nHi there, {user['name']} \n\nHere we have been testing the loop-function. \nSuggest you to take a part. \nRight?")
<b>say_hello</b>()
<i>def</i> <b>choice</b>():
resp = <i>None</i>
<i>while</i> resp not in ['1', '2']:
resp = input("1. Yes. \n2. No. \n")
<i>if</i> resp == '1':
<b>print</b>("Okey, let's do it! ")
<i>elif</i> resp == '2':
<b>print</b>("Well done!")
<i>else</i>:
<b>print</b>("This option is not provide. Please, select the number of answer again.")
<b>choice</b>()
Спасибо за просвещение.