The number of uppercase letters in the string
Write a program that receives a text from the user andNumberPrint the uppercase letters in the output.
Example:
Input: Hooshang
3
Write a program that receives a text from the user andNumberPrint the uppercase letters in the output.
Example:
Input: Hooshang
3
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
j=0 p=input(" matn ra vared kon:") for i in p: if i.isupper(): j+=1 print (j)
def upperletters(text): upper = 0 for i in text: if i.isupper(): upper +=1 return upper text = input('enter the text: ') print (f'number of upper letters is: {upperletters(text)}')
text = input("enter text: ") i = 0 for ch in text: if ch.isupper(): print(ch,end=", ") i += 1
def upper_lower(): """ این تابع برای نمایش دادن تعداد حروف بزرگ و کوچک در یک متن است """ text = input("pleas enter the sentence :") upper = 0 lower = 0 for i in text: if i.isupper(): # Checks whether or not the word is big upper += 1 else: lower += 1 return(f"uppercase : {upper} \nlowercase : {lower}") print(upper_lower())
x = str(input("inter your texst")) y = 0 for i in x: if i.isupper(): y += 1 print(y)
def count_uppercase_letters(text): # Count of uppercase letters uppercase_count = sum(1 for char in text if char.isupper()) return uppercase_count # Receive the text from the user user_input = input("لطفاً یک متن وارد کنید: ") # Count of uppercase letters uppercase_count = count_uppercase_letters(user_input) # Display the result print(f"تعداد حروف بزرگ در متن: {uppercase_count}")
k = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
n = input()
c = 0
for i in k :
if i in k :
c += 1
print(c)
Submitting answers is currently unavailable.
Write a function that receives a string (String) as input and reversed it for example Reverse ('amir') # rimareoverse ('Hello') # Olleh
Write a function that returns the number of a character in a string. To this question you should not use ready -to -use functions ("hooshang", "O") #2
Write a program that the user can add and delete the student name. After each deletion or adding the student, the list of existing students should be displayed as below Choose: 1.Add 2.Rmove1name: hooshang1 ....
Write a program that receives text from the input and prints the translation in the output. It can also be able to get English text from the entrance and convert it to a coder. Input: hooshang ....--- .... ...
Write a program that receives a text and a word from the user, search the word in the text, and as the example below and then put the word * and print the text in the output. Example: Input1: Hello. My name is hooshang. I ...
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام 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.