100 questions
Trying to create a program to find specific characters in a stringPlease point out the errors=input('sentence:')w=input ('Find words:')for i in s: if i==w: print (i+'found at position') else: pri...
Hello!I fell into an infinite loop while practicing c, but I can't solve it.Here's the situation.If you receive an integer between 1 and 10, you have to exit the for statement and re-enter it when you...
def chat(): print('start chatbot') while True: inp = input(user :) ifinf == End: print ('Exit chatbot service') break data = Hello or Hi if data: print(How may I help you?) else: print('Will ...
It's a question from Python about For MoonImplemented as follows n = 10for i in range(0, n-1): // Now we understand that n is 9 for j in range(i + 1, n): // So n here is going to be the 10 declared a...
Write a program that receives two integers N and M and outputs numbers from 1 to N in the form of an M * M matrix. [Input Example 1]23[Output Example 1]121212121[Input Example 2]35[Output Example 2]12...
It is a code that consists of English words in the list, and then receives the word you want to find, outputs the index number from the list if there is the same thing, and outputs -1 if not.For examp...
Hello, I'm Python kid.I have a questionI'm making a phishing site inspection program.When entering A.com, run the program once, save the file under the A.com.txt file name,Continue working on B.com I...
patterns = [Scissors, Rock, Paper]for i in range (len(patterns)): print(patterns[i])Here's a question for the masters. ㅠ
first = ['a', 'b', 'c', 'd', 'e' ] second = ['x', 'y', 'z' ] third = ['apple', 'banana' ] N = 10I'd like to repeat it N times with For Moon using the list above. I can't think of an answer. T If I do ...
y = 0for i in range(4): Text(Point(-0.3, y), y).draw(win) y += 10 max = ????What I don't know is that I don't know what to do with the above maxLike that, y would be 0, 10, 20, 30I want to print 30 wh...
« | - 3 - | » |
© 2024 OneMinuteCode. All rights reserved.