Найти ошибку.
def func(a,b,c=2):
return a+b+c
rez1=func(3,5)
rez2=func(3,5,8)
rez3=func(a=5, b=8)
rez4=func(a=5, c=8)
print('rez =1, rez1')
print('rez =2, rez2')
print('rez =3, rez3')
print('rez =4, rez4')
сама ошибка:TypeError: func() missing 1 required positional argument: 'b'
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.