employer cover photo
employer logo
employer logo

Tata Consultancy Services

Part of Tata Group

Engaged Employer

Tata Consultancy Services Interview Question

Asked me to write a program in python to caluculate parking fee, the input is parking time

Interview Answer

Anonymous

Jul 14, 2026

using datatime lib first we have to calculate the current time the subtract the starting time then dived by 60minutes then multiple with the price per hour