package LambdaGenericsExample1; @FunctionalInterface public interface FunctionalGenerics{ R execute(T t); }
Here, R -> Return type T -> Takes a string as a parameter It's having abstract method execute. It takes a String and returns a string.
package LambdaGenericsExample1; @FunctionalInterface public interface FunctionalGenerics{ R execute(T t); }
Here, R -> Return type T -> Takes a string as a parameter It's having abstract method execute. It takes a String and returns a string.
original_string = "abc:def:ghi::jkl-mno-test"
substring = original_string.split("::")[-1]
print(substring)
In this code, split("::") breaks the original string into parts using "::" as the delimiter and returns a list of parts. Since you're interested in the last part, you can use [-1] to access the last element of the list, which will be "jkl-mno-test". The output will be:
jkl-mno-test
python3 -m pip install package-name2. Uninstall Packages
python -m pip uninstall package-name3. List Installed Packages
python -m pip listand
python -m pip freeze
What is palindrome Number?
A palindromic number is a number (such as 16461) that remains the same when its digits are reversed.
Python Code:
Resource Link:
চাণক্যের একটি কথা আছে, ‘চাঁদ নক্ষত্রসমূহের সৌন্দর্য বৃদ্ধি করে, একজন সুশাসক পৃথিবীর সৌন্দর্য বৃদ্ধি করেন, স্বামী-স্ত্রী সম্পর্ক পরিবারের সৌন্দর্য বৃদ্ধি করে।