Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
67% found this document useful (6 votes)
9K views

Python Infytq Assignment New

The document outlines the daily assignments for a Python training course conducted over 9 days, covering topics such as basic Python programming exercises, functions, loops, conditional statements, and more. Assignments include writing programs to calculate bill amounts, solving problems related to loops, conditional logic, and functions. Students are given quizzes and exercises to practice the concepts covered during the training.

Uploaded by

Nipoorva Yadav
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
67% found this document useful (6 votes)
9K views

Python Infytq Assignment New

The document outlines the daily assignments for a Python training course conducted over 9 days, covering topics such as basic Python programming exercises, functions, loops, conditional statements, and more. Assignments include writing programs to calculate bill amounts, solving problems related to loops, conditional logic, and functions. Students are given quizzes and exercises to practice the concepts covered during the training.

Uploaded by

Nipoorva Yadav
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 58

PYTHON INFYTQ ASSIGNMENT

DAY 1 ASSIGNMENT
1.

2.
3.

4.
5.
5.
5.

6.
7.

8.
9.

10.
11.

12.
13.
DAY 1 QUIZ
QUIZ
EXCERCISES
DAY 2 ASSIGNMENT
15)

16)
17)
18)
19)
#PF-Assgn-19

def calculate_bill_amount(food_type,quantity_ordered,distance_in_kms):
bill_amount=0
#write your logic here
if food_type=="V":
if quantity_ordered>0:
if distance_in_kms>6:
bill_amount=quantity_ordered*120+((distance_in_kms-6)*6)+9
elif distance_in_kms>3:
bill_amount=quantity_ordered*120+((distance_in_kms-3)*3)
elif distance_in_kms>0:
bill_amount=quantity_ordered*120
else:
bill_amount=-1
else:
bill_amount=-1
elif food_type=='N':
if quantity_ordered>0:
if distance_in_kms>6:
bill_amount=quantity_ordered*150+((distance_in_kms-6)*6)+9
elif distance_in_kms>3:
bill_amount=quantity_ordered*150+((distance_in_kms-3)*3)
elif distance_in_kms>0:
bill_amount=quantity_ordered*150
else:
bill_amount=-1
else:
bill_amount=-1
return bill_amount

#Provide different values for food_type,quantity_ordered,distance_in_kms and test your program


bill_amount=calculate_bill_amount("N",2,7)
print(bill_amount)
DAY 3 Assignments
Assignment 22:

Assignment 23:

Assignment 24:
Assignment 25:
It was just a learning assignment.
Assignment 26:

Assignment 27:
Assignment 28:
DAY 4 Assignment
Assignment 29:

Assignment 30:

Assignment 31:
Assignment 32:

Assignment 33:
DAY 5 ASSIGNMENT
1.

2.
3.

4.
5.

6.
DAY 6 ASSIGNMENT

1.

2.
3.

4.
5.

DAY 7 ASSIGNMENT
QUE 46
.

OUTPUT
*

QUE 47
OUTPUT
QUE 48
OUTPUT
QUE 49

OUTPUT
QUE 50
OUTPUT
QUE 51
OUTPUT
DAY 8 ASSIGNMENT
EX-36
ASSIGNMENT 52
ASSIGNMENT 53

ASSIGNMENT 54
ASSIGNMENT 55

ASSIGNMENT 56
ASSIGNMENT 57

ASSIGNMENT 58
ASSIGNMENT 59

ASSIGNMENT 60
ASSIGNMENT 61
DAY 9 ASSIGNMENT

1.

You might also like