What will be the output of the following Python Code function?


(lambda x: (x + 3) * 5 / 2)(3)
Options:
a) 30.0
b) 15.0
c) 0
d) SyntaxError


Answer:
b) 15.0

Explanation:
x + 3 → 3 + 3 = 6
5 / 2 = 2.5
6 * 2.5 = 15.0

Subscribe our youtube channel Click Here

Join our Telegram Group to get latest updates of Offcampus Placements Join Telegram Group



Latest Jobs :-

Velotio is Hiring for Freshers for the role of Associate Software Engineer ( Remote ), Apply Now

Axa XL is Hiring Freshers and Experience candidates for the role of Trainee - Global Technology, Apply Now
HBC is Hiring Freshers and Experience (0-2 years) candidates for the role of Trainee Software Engineer, Apply Now
Sathguru Management Consultants is Hiring Fresher and Experience (0-2 years) candidates for the role of Trainee Software Engineer Apply Now
Global Payments Inc is Hiring for the role of Associate Software Engineer, No Experience is required, Apply Now
BYJU'S is Hiring for the role of Business Development Executive Work From Home job with 8 LPA CTC, Apply Now
Offcampus Drive from TCS 2023 for Freshers Apply Now

List of All Latest Jobs Click Here