function in python | Lec-21

In this video, I have talked about the fundamentals of programming and Python. If you complete this, you will be well-versed in using tuples for different use cases.
Directly connect with me at:- topmate.io/manish_kumar25
Q1. Secure the PII data.
Input = ["mverma6250@gmail.com","ramesh02@hotmail.com",
"sohansingh@gmail.com","swatirahane@outlook.com"]
Input = ["m********0@gmail.com","r******2@hotmail.com",
"s********h@gmail.com","s*********e@outlook.com"]
Q2. Print the list of all unique ip addresses?
Input:-
["/region//us-east-a/north/resource/vminsatnce/subsid/ae-456-df/server/10.168.155.2",
"/region//us-east-b/north/resource/vminsatnce/subsid/ae-456-df/server/10.168.156.2",
"/region//us-east-c/north/resource/vminsatnce/subsid/ae-456-df/server/10.168.151.2",
"/region/japan/north/resource/vminsatnce/subsid/ae-456-df/server/10.168.155.22",
"/region/india/north/resource/vminsatnce/subsid/ae-456-df/server/10.168.167.2",
"/region//us-east-a/north/resource/vminsatnce/subsid/ae-456-df/server/10.168.179.28",
"/region//us-east-b/north/resource/vminsatnce/subsid/ae-456-df/server/10.168.155.31",
"/region//us-east-c/north/resource/vminsatnce/subsid/ae-456-df/server/10.168.151.2"
]
Output:- ["10.168.155.2","10.168.156.2","10.168.151.2"
"10.168.155.22","10.168.167.2",
"10.168.179.28","10.168.155.31" ]
Discord channel:- / discord
For more queries reach out to me on my below social media handle.
Follow me on LinkedIn:- / manish-kumar-373b86176
Follow Me On Instagram:- / competitive_gyan1
Follow me on Facebook:- / manish12340
My Second Channel -- / @competitivegyan1
Interview series Playlist:- • Interview Questions an...
My Gear:-
Rode Mic:-- amzn.to/3RekC7a
Boya M1 Mic-- amzn.to/3uW0nnn
Wireless Mic:-- amzn.to/3TqLRhE
Tripod1 -- amzn.to/4avjyF4
Tripod2:-- amzn.to/46Y3QPu
camera1:-- amzn.to/3GIQlsE
camera2:-- amzn.to/46X190P
Pentab (Medium size):-- amzn.to/3RgMszQ (Recommended)
Pentab (Small size):-- amzn.to/3RpmIS0
Mobile:-- amzn.to/47Y8oa4 ( Aapko ye bilkul nahi lena hai)
Laptop -- amzn.to/3Ns5Okj
Mouse+keyboard combo -- amzn.to/3Ro6GYl
21-inch Monitor-- amzn.to/3TvCE7E
27-inch Monitor-- amzn.to/47QzXlA
iPad Pencil:-- amzn.to/4aiJxiG
iPad 9th Generation:-- amzn.to/470I11X
Boom Arm/Swing Arm:-- amzn.to/48eH2we
My PC Components:-
intel i7 Processor:-- amzn.to/47Svdfe
G.Skill RAM:-- amzn.to/47VFffI
Samsung SSD:-- amzn.to/3uVSE8W
WD Blue HDD:-- amzn.to/47Y91QY
RTX 3060Ti Graphic card:- amzn.to/3tdLDjn
Gigabyte Motherboard:-- amzn.to/3RFUTGl
O11 Dynamic Cabinet:-- amzn.to/4avkgSK
Liquid cooler:-- amzn.to/472S8mS
Antec Prizm FAN:-- amzn.to/48ey4Pj

Пікірлер: 19

  • @manish_kumar_1
    @manish_kumar_12 ай бұрын

    This video is re-uploaded due to sound issue in the previous one.

  • @chauhannirav569
    @chauhannirav5692 ай бұрын

    Thank you sir

  • @bumchikbum152
    @bumchikbum15224 күн бұрын

    Bhai k video Lamda functions pr bhi bna do

  • @anmolgupta1348
    @anmolgupta13482 ай бұрын

    garden=100*20 home=80*60 price=10 def grass_area(length,breadth,price,garden,home): total=length*breadth area=(total-garden-home)*10 return area val=grass_area(100,100,10,garden,home) print(val)

  • @bolisettisaisatwik2198
    @bolisettisaisatwik21982 ай бұрын

    For PII question: for email in emails: username, domain = email.split("@") masked_email = username[0]+ (len(username)-2)*'*'+ username[-1] + '@' + domain print(masked_email)

  • @mahesh_da
    @mahesh_da2 ай бұрын

    Plz Decorators and generators par bhi videos banao

  • @TravelIndiaWala
    @TravelIndiaWala2 ай бұрын

    Could you please upload video I am waiting

  • @killerricky54
    @killerricky54Ай бұрын

    input2_split = "".join(input) # print(input3_split) input2_split1 = input2_split.split('/') output = [] for i in input2_split1: if i.startswith('10'): output.append(i) else: continue print(output)

  • @user-tm2dw4iv9k
    @user-tm2dw4iv9k2 ай бұрын

    Bhai would love to see more pyspark indepth videos can you cover more indepth topics in it

  • @safiadawood5637
    @safiadawood56372 ай бұрын

    land_l = 100 land_w = 100 garden_l= 100 garden_w= 20 home_l = 80 home_w = 60 cost_of_grass = 10 def calculate_area(l,w): return l * w total_grass_cost = (calculate_area(land_l, land_w-garden_w)-calculate_area(home_l,home_w))*cost_of_grass print(total_grass_cost)

  • @ankitdhurbey7093
    @ankitdhurbey70932 ай бұрын

    def calculate_grass_cost(area,cost_per_sqft): grassing_cost = area * cost_per_sqft return grassing_cost area_of_land = land _length * land_breadth area_of_home = home_length* home_breadth area_of_garden = garden_length* garden_breadth area_for_grass = area_of_land - (area_of_home + area_of_garden) cost_of_grass = 10 grass_cost = calculate_grass_cost(area_for_grass, cost_of_grass) print(f"The cost of putting grass around home is: ", grass_cost)

  • @manish_kumar_1

    @manish_kumar_1

    2 ай бұрын

    Area v usi me calculate kar sakte hai. Ye you can make new functions too. Which you can call inside cost calculation wala function. Code is correct but function ka utilization sahi nhi hai. Repetitive task av v aap kar rhe ho. Yahi to hame sikhna hai as a developer

  • @chauhannirav569
    @chauhannirav5692 ай бұрын

    Apne meri baat sun li re-upload video kar ke

  • @manish_kumar_1

    @manish_kumar_1

    2 ай бұрын

    Thanks for pointing out the issue