Python in Kannada - Comprehension | List Input | Loops Revision | Full Course for Beginners - # 11

preview_player
Показать описание
Welcome to the eleventh part of the Python Full Course for Beginners in Kannada! Through this series on Engineering in Kannada, I'm teaching Python from scratch in Kannada to help you build a strong foundation.

This lesson will enhance your understanding of list operations and give you practical ways to simplify your code. As always, the concepts are explained in Kannada to make it easy for you to follow along.
- List Comprehension: A powerful way to create lists using a single line of code with loops and conditional logic.
- List Input: Learn how to accept list input from the user and store multiple values in Python.
- Loops Revision: A quick recap of for and while loops, and how they are used in Python to iterate over sequences efficiently.

✨ RESOURCES ✨

✨ JOIN OUR COMMUNITY ✨
2. Use links in Instagram account Bio to get access to WhatsApp and Telegram community

✨ TIMESTAMPS ✨

Introduction - 00:00
Looping through list - 01:00
Looping through dictionaries - 05:14
For loops with range - 08:25
List comprehension - 15:08
Dictionary comprehension - 24:55
List Input & String Split Method - 31:55

Thanks for Watching!

#pythonkannada #engineeringinkannada #fullcourse #python #programming #codinginkannada
Рекомендации по теме
Комментарии
Автор

Great video, finally understood those fancy lines of codes (comprehension)

poorvikr
Автор

i watced more than 5+ times this playlist to understand loops concept

kiranbcrkbc
Автор

I am present
Your passion for teaching shines through in everything you do....Guru❤

PoojaBayappagol
Автор

Yes bruh last you are only a hope for me
Attendance

Creativityoutuber
Автор

The classes are switching to difficult mode, but thank u so much for the nice explanation ❤, waiting for next class 😊

googlyappu
Автор

Bro yesterday cls very interesting bro

KEERTHANAKS-te
Автор

Explanation is just amazing bro 👏 really very very understandable. Thank you so much bro❤

ishwarya.rk
Автор

Present bro
Thanks to teaching us patiently.

BhoomikaLisha
Автор

#1. List Manipulation:
#Create a list of Kannada foods. Use list comprehension to create a new list
# where each food name is in uppercase.
foods_kannada = ["Rotti", "Mudde", "Idli"]
foods_uppercase = [food.upper() for food in foods_kannada]
print(foods_uppercase)

#2. Sum of Prices:
#Create a dictionary of 5 items with their prices. Write a program that
# calculates the total price of all items using a for loop.

price_veggies = {120, 100, 30, 50, 60} #(Beens, Guaua, etc in blr)
sum_veggies = 0

for price in price_veggies:
sum_veggies += price
print("Total sum: ", sum_veggies)


#3. List of Squares:
#Create a list of numbers from 1 to 10. Use list comprehension to generate a list of their squares.

numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
square_numbers = [num **2 for num in numbers]
print(square_numbers)


# 4. Student Data Task:
#Create a list of 3 dictionaries, where each dictionary contains the name, age, and marks of a student.
# Loop through the list and print each student's information.

student_1 = {"name": "Ragvendra", "age": 30, "marks": 30}
student_2 = {"name": "Dhanashri", "age": 1, "marks": 60}
student_3 = {"name": "Dia", "age": 25, "marks": 90}

student_info = [student_1, student_2, student_3]

for student in student_info:
print(f"Name: {student['name']}, Age: {student['age']}, Marks: {student['marks']}")

#Dictionary Comprehension:
#Create a dictionary where the keys are Kannada cities, and the values are their populations.
#Use dictionary comprehension to filter out cities with populations below 10 lakhs.
city_population = { "Bengaluru": 141, "Mysuru": 11, "Mandya": 6}
large_cities = {city: population for city, population in city_population.items() if population > 10}
print(large_cities)

ragvendrabgowda
Автор

Plzz do teaching on artificial intelligence

VaraLakshmi-wrqu
Автор

What is difference between return and print??

vaishnavid