.join() method in python | Lec-20

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

Пікірлер: 16

  • @AnuragRaut-ry2oq
    @AnuragRaut-ry2oq20 күн бұрын

    Sol 2: ip = [] for i in input: parts = i.split('/') ip_address = parts[-1] ip.append(ip_address) print(ip)

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

    Q1: Without any inbuilt function result_email = [] for i in email: temp = i[0] for x in range(1,len(i)): if i[x+1] == '@': temp += i[x:] result_email.append(temp) break else: temp += "*" print(result_email)

  • @manishagarwal6780
    @manishagarwal67802 ай бұрын

    Q1 soln: sec_data=[] for mail in piid: last_index=mail.index('@') replacement_str='*' * last_index mail=mail.replace(mail[1:last_index-1],replacement_str,1) sec_data.append(mail) print(sec_data)

  • @home5871
    @home58712 ай бұрын

    Bhaiyya teach and guide us python only needed for data engineering plzzz

  • @ShekharBhide
    @ShekharBhide29 күн бұрын

    I have one doubt In SQL query correct format is below state= 'bihar' and department= 'IT' in you case its state = bihar without ' ' qoute I think its not valid query

  • @MukeshKumarBehera-cb1pv
    @MukeshKumarBehera-cb1pv2 ай бұрын

    Q2. Solution s1=set() pattern=r'\b(?:\d{1,3}\.){3}\d{1,3}\b' for ch in l1: filtered=re.findall(pattern,ch) s1.update(filtered) print(list(s1))

  • @mukbang_24_7
    @mukbang_24_72 ай бұрын

    soln 2 ip_addresses=[] for input_str in input: parts=input_str.split('/') ip_address=parts[-1] ip_addresses.append(ip_address) print(ip_addresses)

  • @manishagarwal6780
    @manishagarwal67802 ай бұрын

    ans_li=set([i.split("/")[-1] for i in lis]) print(ans_li)

  • @kushchakraborty8013
    @kushchakraborty80132 ай бұрын

    Guru Ji, thank you a lot for this explanation. Ek sawal tha boss, interviews de toh raha huun and Spark,PySpark vagera sab ke jawab theek se de pa raha huun but SQL dikat ban raha hai, Kabhi kabhi complex querry likh ne ko bolte hai kabhi kabhi seedha table de dete hai aur bole joins perform karo. SQL aur Querry likh ne ke toh production experience hai nhai, zara resources suggest karo na jisse SQL mai aacha kar sake

  • @manish_kumar_1

    @manish_kumar_1

    2 ай бұрын

    Baat production me code likhne ka nhi aapke confidence ka hai. Aap leet code ke database questions solve kijiye. Confidence aa jayega

  • @MukeshKumarBehera-cb1pv
    @MukeshKumarBehera-cb1pv2 ай бұрын

    Manish Bhaiya , Can you please make a detailed videos on regular expression ?

  • @manish_kumar_1

    @manish_kumar_1

    2 ай бұрын

    Sure

  • @vinu11sharma
    @vinu11sharma2 ай бұрын

    @manish_kumar_1 result not match This is our result:- AND state=Bihar OR department=IT OR state=Delhi OR department=Marketing Expected result: AND state='Bihar' OR department='IT' OR state='Delhi' OR department='Marketing' Value should be under ' '

  • @manish_kumar_1

    @manish_kumar_1

    2 ай бұрын

    Yes you are right. Mistake ho gaya hai. Aap code ko accordingly change Kar lijiyega