DEV Community

KAPIL SHAH
KAPIL SHAH

Posted on

Day-03 of Kapil’s learning python programming

The things i learned from python are:

1.More i.e. depth in list:

In list i learned about many thing about the proper use of list:

like we can use this in many function i.e. inside the function:

like list(a.range(5,3))

I get to know that list has many importance in programming language.

2.Set :

The new thing i learned in today’s course is about set .

it also have many use in function basically it is basically use for the mathematical problems

for example:::

set1={1,2,3,4,5}
set2={2,9,8,5,4,3}
print(set1.union(set2))
print(set1.intersection(set2))
Enter fullscreen mode Exit fullscreen mode

In above code we are basically finding union and intersection using set function.

I got this idea from a channel called apnacollege.

Overall we can understand that set is widely used while mathematical problem.

3.Dictionary :

In Dictionary (one the function or “method” i learned about storing a data in a ordered manner.

I had little problem between list and dict. then i got to know that list store data in a single line ,where as dict. stored data in multiple line… :)

for example :

#Dictioanries are used to store data values in key:value pairs 
#They are unordered,mutable(changeable)
info ={
    "key":"value",
    "name":"Apnacollege",
    "learning":"python",
    "subjects" : ["java","c++"],
    "AGE":35,
    "is_adult":True,
    "marks":95.69,
}
print(info)

Enter fullscreen mode Exit fullscreen mode

we can check yourself what the data could be…

i also learned some very basic stuff which i have already shared in my previous day’s Blog

so please go there and check it out

and yes “ I AM BATMAN”

Thank you this much for today

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post