string in python | Lec-17

  Рет қаралды 1,659

MANISH KUMAR

MANISH KUMAR

Күн бұрын

Пікірлер: 38
@ishaangupta4941
@ishaangupta4941 7 ай бұрын
Very nice and helpfull series sir ! After this can you pls make a series on DB designing and concepts. Some of the common designs might be ( Cab system, trading app, shopping app , movie , streaming platforms etc ). Thanks
@manish_kumar_1
@manish_kumar_1 7 ай бұрын
Noted
@Timezonee
@Timezonee 7 ай бұрын
Bhaiya aap Apna according continue kro Lectures ko and . Thanks for your efforts
@Untold_Stories0
@Untold_Stories0 Ай бұрын
for i in lst: name,domain = i.split('@') if len(name) > 2: mask = name[0] + '*'*(len(name)-2) + name[-1] else: mask = name mask_with_domain = mask + '@' + domain print(mask_with_domain)
@shivamsingh-ee2jv
@shivamsingh-ee2jv 2 ай бұрын
#2 lst=[] lst1=[] for i in Input1: lst.append(i.split("/server/")) for j in range(len(lst)): lst1.append(lst[j][1].split("/")[0]) print(set(lst1))
@raushansingh7530
@raushansingh7530 4 ай бұрын
Input = 'Programming Aasan Hai' output = '' for i in Input: if (i.islower()) == True: output=output + (i.upper()) elif (i.isupper()) == True: output = output + (i.lower()) elif (i.isspace()) == True: output = output + i logger.info(output)
@kamalprajapati9955
@kamalprajapati9955 Ай бұрын
ip=set() for i in lst: ip.add(i.split("server/")[1].split("/")[0]) ip = list(ip) print(ip)
@GaurangDeshani
@GaurangDeshani 7 ай бұрын
Que:1 Solution:- originalStr = "WOrd" swapCaseStr = "" for char in originalStr: if ord(char) < 97 and ord(char) >= 65: value = ord(char) + 32 swapCaseStr = swapCaseStr+chr(value) elif ord(char) >= 97 and ord(char)
@satyamkumarjha4185
@satyamkumarjha4185 4 ай бұрын
dude that's so goood.
@VickySah-r8z
@VickySah-r8z 6 ай бұрын
Input = "Programming Aasan Hai" lst =[] for i in Input: if i.islower(): lst.append(i.upper()) else: lst.append(i.lower()) print(''.join(lst))
@rameshsannathi3255
@rameshsannathi3255 4 ай бұрын
ip = [] for val in data: ip.append(val.split("/")[9]) print(set(ip))
@NaveenKumar-ln9vg
@NaveenKumar-ln9vg 6 ай бұрын
input = "Programming Aasan Hai" lst = [] for char in input: if char.islower(): lst.append(chr(ord(char)-32)) else: lst.append(chr(ord(char)+32)) output = (''.join(lst).replace("@",' ')) print(output)
@nupoornawathey100
@nupoornawathey100 7 ай бұрын
Pls share questions in description
@manish_kumar_1
@manish_kumar_1 7 ай бұрын
Done
@chauhannirav569
@chauhannirav569 7 ай бұрын
Hi sir, which languages or tools or Database you are preferred starting data engineering..
@chauhannirav569
@chauhannirav569 7 ай бұрын
For fresher, I am currently studying bca last semester I have starting journey with data engineering.
@manish_kumar_1
@manish_kumar_1 7 ай бұрын
Language- Python Database- MySql
@AbhinavShukla-ki5jd
@AbhinavShukla-ki5jd 4 ай бұрын
Q1 wrd="Programming Aasan Hai" newwrd="" for ch in wrd: if ch.isupper()==True: a=ord(ch) a+=32 newwrd=newwrd+(chr(a)) elif ch.islower()==True: a=ord(ch) a-=32 newwrd=newwrd+(chr(a)) elif ch.isspace()==True: newwrd=newwrd+" " print(newwrd) Q2 ans="" for ch in data: newdata=ch.split("/") ans=ans+newdata[10] print(ans)
@safiadawood5637
@safiadawood5637 7 ай бұрын
I could have used RegEx but I don't have a good hang of it
@VickySah-r8z
@VickySah-r8z 6 ай бұрын
for i, string in enumerate(Input): Input[i] = string.split("/server/")[1].split("/")[0] print(list(set(Input)))
@Rads_123
@Rads_123 2 ай бұрын
u="PicT" v=" " for i in u: if i.islower(): v=v+ i.upper() if i.isupper(): v=v+i.lower() print(v)
@raushansingh7530
@raushansingh7530 4 ай бұрын
output =[] for i in Input: start_index = i.split("/server/")[1].split("/")[0] output.append(start_index) logger.info(output)
@chauhannirav569
@chauhannirav569 7 ай бұрын
DB series but PostgreSql okay
@manish_kumar_1
@manish_kumar_1 7 ай бұрын
Yes complete ok
@yashiyengar7366
@yashiyengar7366 7 ай бұрын
Solution 1: def swap_case(stryng): Output = "" for i in stryng: if i == i.lower(): Output += i.upper() else: Output += i.lower() return Output print(swap_case(Output)) Solution 2: def uniq_ip_finder(Input): output = [] for i in Input: for j in i.split("/"): if "10." in j: output.append(j) output = list(set(output)) return output print(uniq_ip_finder(Input))
@manish_kumar_1
@manish_kumar_1 7 ай бұрын
ip can't be always 10. Something it can be anything
@yashiyengar7366
@yashiyengar7366 7 ай бұрын
@@manish_kumar_1 can I use a regex pattern to find the ip ?
@manish_kumar_1
@manish_kumar_1 7 ай бұрын
@@yashiyengar7366 yes you can.
@yashiyengar7366
@yashiyengar7366 7 ай бұрын
@@manish_kumar_1 This should do the job then hopefully it covers all edge cases. import re def uniq_ip_finder(input_list): ip_pattern = r'\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b' output = [] for i in input_list: matches = re.findall(ip_pattern, i) output.extend(matches) output = list(set(output)) return output output = uniq_ip_finder(input_list) print(output)
@satyamkumarjha4185
@satyamkumarjha4185 4 ай бұрын
string_reversal = "RaM Is a bAd bOy" empty_string = "" for i in string_reversal: if i.isupper() == True: i = i.lower() empty_string = empty_string+i else: i = i.upper() empty_string = empty_string+i logger.info(empty_string)////reversal without using swap case
Players push long pins through a cardboard box attempting to pop the balloon!
00:31
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 10 МЛН
Don't underestimate anyone
00:47
奇軒Tricking
Рет қаралды 29 МЛН
.join() method in python | Lec-20
24:04
MANISH KUMAR
Рет қаралды 1,8 М.
String methods in Python are easy 〰️
12:06
Bro Code
Рет қаралды 120 М.
how to make database connection in python | Lec-27
31:42
MANISH KUMAR
Рет қаралды 1,2 М.
EID Special video Typescript EIDI
4:20
Knowledge & Learning
Рет қаралды 916
Accessing String Characters in Python
12:25
Neso Academy
Рет қаралды 50 М.
function in python | Lec-21
23:03
MANISH KUMAR
Рет қаралды 1,5 М.
error handling in python | Lec-23
29:13
MANISH KUMAR
Рет қаралды 1,9 М.
Players push long pins through a cardboard box attempting to pop the balloon!
00:31