Checking the string letters
Write a function that receives a string and checks all the letters.
If all the letters of the string were small, otherwise False would return
Write a function that receives a string and checks all the letters.
If all the letters of the string were small, otherwise False would return
text = input("please enter a sentence: ") if text.islower(): print("True") else: print("False")
def is_all_lowercase(input_string): # Checks if all the letters are small return input_string.islower() # Function test test_string = input("لطفاً یک رشته وارد کنید: ") result = is_all_lowercase(test_string) if result: print("تمام حروف رشته کوچک هستند: True") else: print("تمام حروف رشته کوچک نیستند: False")
nam = input("what your:") if name[0:] == lower() and name[0:]==isalpha() : print("True") else: print("False")
? 'Namerror: Name' Name 'is not defined. DID You Mean: 'NAM
text = input('text: ') print(text.islower())
print("enter you carecter") x = input(str) if x.islower(): # Examinations. I have used uppercase in the string print(True) else: print(False)
def string(): text = input("enter text: ") return True if text.islower() and text.isalpha() else False print(string())
def is_lower(str): if str.islower(): print ('true') else: print ('false') str=input('your str : ') is_lower(str)
def is_all_lowercase(s): return s.islower() string = input('Enter a string : ') print(is_all_lowercase(string))
text = input("pleas enter the sentence :") def lower_upper(text): if text.islower(): return True elif text.isupper(): return False print(lower_upper(text))
Submitting answers is currently unavailable.
Write a function that receives the bank card number as an entrance and places * for all its digits except the first and last digits and give some example as the example below: ("603711121119900") "60 ... 60 ...
Write a function that receives a string and converts Persian numbers into English numbers
Write a function that receives a list of numbers and generates 2 lists for pair and individual numbers and prints in the output example ([1,2,3,4]) Output: [1,3] [2,4] [2,4]
Create a list and display the following on the screen. Next to each item must be automatically placed.
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام If you don’t understand the exercise or can’t solve it for any reason, that’s completely
normal—don’t worry 😊
Try checking out easier exercises and reviewing different answers
submitted by others. Gradually, you can move on to more challenging exercises. Also, your answer
might be correct even if it’s different from others.