Cutting the text
Write a program that receives a text from the input and, as in the example below, print from the first to the first point of that text
Write a program that receives a text from the input and, as in the example below, print from the first to the first point of that text
maten = input("enter maten: ")
a = maten.find('.')
print(maten[0:a])
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 text(): text = input('enter a text :') text=text.partition('.') print(text[0]) text()
Answer an Enter a Text: hossein.hooshang hossein
i = input("E :") s = i.find("." + "n." +"i." + "..") print(i) E=Amir.hossein.Naei. ..
# Receive Input and Construction Text = input('Please enter text : ') dot = 0 # Find the first point dot = Text.find('.') # Remove the additional sections and display the result if dot != -1 : print('\n\n ' + Text[:dot]) else : print('\n\n ' + Text)
a = input('enter your discriptions:')
r = a.find('.')
print(a[0 : r])
inStr=input("matn ra vared konid: ") print(inStr[:inStr.find('.')])
# Taking the text from the input Text = input('Enter Text:') # Find the first point in the text find = Text.find('.') # Printing up to the first point of the text print(Text[0:find])
Submitting answers is currently unavailable.
Write a function that receives some and checks whether the amount received is the email. If the email was True, otherwise the False return the email should contain @ before @ should be a phrase as a work name ...
Write a program that receives an email address and separates the various sections as follows and prints on the output example: email: [email protected] info amirhn.ir Example: email: [email protected] username gmail.com
Write a program that translates the following words from Farsi to English and vice versa. The program must be implemented infinitely and it is possible to add new words easily words: Hello = hello goodbye = bye Kata ...
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 ...
Write a function that receives a word and changes each letter to its next letter in the alphabet. Then returned the result. Indeed: "A" turns into "B" "" B "becomes" C "" C "becomes" D "and ........
Write a program that receives a number from the user and converts to letters suppose the numbers entered between 0 and 1000000 23 ➞ Twenty Three 405 ➞ Four HundredR
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 ...
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام 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.