87469/write-program-code-for-below-input-to-get-required-output
Write program/code for below input to get the required output
Input str1= abcde str2= abret
Output: "rcdt"
Please help me to solve this
That is a "set subtraction" operation. Use the set data structure for that.
Str1 = {a,b,c,d,e} Str2 = {a,b,r,e,t} print Str1 - Str2
Output:
>>> print Str1 - Str2 set([r,c,d,t])
Hello, @Hitesh, You can follow the below: print("List of ...READ MORE
You can use the code below: lis = ...READ MORE
Here's the code: check = input("Enter the character: ...READ MORE
change def parse(path): g = gz ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
You can simply the built-in function in ...READ MORE
You can go through this: def num(number): ...READ MORE
Hi, @There, Try this: Rollback pip to an older ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.