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
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('.')])
a = input('enter text: ')
a = (a[0:10])
print(a)
# 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 program that gets distance to meters and converts to kilometers and shows at the output tips: each km = 1000 m
Write a program that prints an integers in the output. Get the desired interval from the input.
Write a program that prints each student's name according to the list below, and as much as his / her name, the star of his name prints the question. Try to use the nested rings Amir 5hooshang 7rez ...
Write a program that gets the user's date of birth and determines how many years, months and a few days have passed since his birthday
Write a class called Vehicle that has Model and Color features and has a method called get_info that returns all its features as a strang then write a class called Car from Vehicle ...
Write a program that receives a number and prints the first counters in the output
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.