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 program that receives a number of input and from that number to zero countdown and prints in the output
Write a graphics program that has 2 fields to enter the number and 4 buttons for subtraction, multiplication and division. By selecting each button, the relevant calculations should be done on the 2 numbers entered and the result is displayed.
We want to open a cow door, we don't know the safety password, but we have the following information: the second -digit safing password is the first number of the first digit, the last 4th of the person in one unit is smaller than their first digit ...
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 obtained a person's / BMI body / BMI formula and, according to the information below, shows the status of the person BMI = w / h * h formula = weight divided by second power BMI ...
We want to open the cow door, we don't know the password, but we have the following information: the second -digit safing password and the fifth digit equivalent to the first number of the first digit of a larger unit ...
You must be logged in to access this section.
Login/Sign up 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.