The string of the string
Write a function to receive a string (String) and return the number of letters
Note: To solve this question, you should not use ready -made functions
Example:
get_len('code-bezan.ir') # 13
Write a function to receive a string (String) and return the number of letters
Note: To solve this question, you should not use ready -made functions
Example:
get_len('code-bezan.ir') # 13
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
def n(input_string): count = 0 for character in input_string: count += 1 return count string =input("name:") print(n(string))
# In the following function does not calculate the distance as letters and if we want to calculate we must erase the condition def get_len(par): lenght = 0 for i in par: if i == ' ': pass else: lenght += 1 return lenght a = 'this is a test' print(get_len(a))
def toolstr(n): x = len(n) return f"tooll reshete string: {x}" print((toolstr(n=str(input("enter your tool string:")))))
i=(input("str:")) j=len(i) print(j)
def Shomarande(n) :
count = 0
for i in n :
count += 1
return count
def get_len(string): index = 0 while len(string) > index: print(index + len(string)) break while True: i = input("string: ") get_len(i)
def string_len(): x = input() print(len(x)) string_len()
Submitting answers is currently unavailable.
Write a function that receives 2 numbers as parameter (A and B) and get A to power B and return
Write a program that prints an integers in the output. Get the desired interval from the input.
Using JavaScript Send a request with the following specifications method = posturl = /test.php FNAME information =? LNAME =? Age =? Get the information above through Prompt from the user
CSS Code Write to select the DIV below and change the color of the texts inside to green<div id="mybox">code-bezan.ir</div>
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.