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 the user's name, age and city and print on output
Write a program that receives 2 dates in yyyy/mm/dd format and print 2 dates to the output for example Tarikh1: 1401/11/01 tarikh2: 1401/11/05 4 days Tarikh1: 1401/10/01 Tarikh2: 1401/11/05 34 Days
CSS code to select all the following elements at once and change their background color to yellow<div class="yellow" id="box"></div><div class="yellow"></div><div class="yellow mybox"></div>Footer call to action
Write a code that uploads a video with an address (test) on the page. There are video control buttons too
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام 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.