Course Content

Python Practice 3 | Python Tutorials For Absolute Beginners In Hindi #107

Foods and Calories

You visit a restaurant called CodeWithHarry and food items in this restaurant are sorted based on their amount of calories. You have to reverse this list of food items containing their calories.

You have to use following three methods to reverse a list:

• Inbuilt method of python
• Listname[::-1] slicing trick
• Swapping first element with last one and second element with second last one and so on….
Take a list as an input from the user.

All the three methods give same results!
►Full Python tutorials for absolute beginners (Hindi) playlist -
►Click here to subscribe -

Code as described/written in the video

Be the first person to comment!



No downloadable resources for this video. If you think you need anything, please post it in the QnA!

Course Announcements

Any Course related announcements will be posted here