The document contains 3 Python code snippets:
1) A program that takes a function as input from the user and prints it.
2) A program that calculates the average of 3 numbers input by the user.
3) A program that converts a distance in kilometers input by the user to miles, where 1 km is approximately 0.62 miles.
The document contains 3 Python code snippets:
1) A program that takes a function as input from the user and prints it.
2) A program that calculates the average of 3 numbers input by the user.
3) A program that converts a distance in kilometers input by the user to miles, where 1 km is approximately 0.62 miles.
The document contains 3 Python code snippets:
1) A program that takes a function as input from the user and prints it.
2) A program that calculates the average of 3 numbers input by the user.
3) A program that converts a distance in kilometers input by the user to miles, where 1 km is approximately 0.62 miles.
#1. Te shenohet programi i cili i printon nje perdoruesi funksionin e dhene.
#x=input('Te ipet funksioni: ')
#print(x)
# 2. Te shenohet programi qe llogarit vleren mesatare te tre numrave qe i merr n
e hyrje nga perdoruesi. #a, b, c = eval(input('Te shkruhen vlerat per variablat (a, b, c): ')) #vleraMesatare = (a+b+c)/3 #print('Vlera mesatare e 3 numrave eshte: ' + str(vleraMesatare))
# 3. Te shenohet programi qe konverton distancen e matur ne kilometra, qe ipet s
i variabel hyrese nga perdoruesi, ne milje. Nje kilometer eshte perafersisht 0.6 2 milje. #x=int(input('Te ipet vlera e kilometrave: ')) #vleraEMiljeve = x*0.62 #print( 'Vlera e miljeve eshte: ' + str(vleraEKilometrave))