for tag

100 questions


1 answers
53 views
0
Python for Moon

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...

2 years ago

1 answers
85 views
0
Hello! I want to know why infinite loops occur.

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...

2 years ago

2 answers
84 views
0
Is it possible to put various conditions in the form of a list in the if conditional statement?

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 ...


1 answers
70 views
0
Question about Python for door.

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...

for
2 years ago

1 answers
94 views
0
It's a Python question

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...

for
2 years ago

2 answers
54 views
0
Please find the Python error.

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...

2 years ago

1 answers
63 views
0
Rotate the desired list loop, save the result as each item.

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...

for
2 years ago

1 answers
105 views
0
Python, for Repeat

patterns = [Scissors, Rock, Paper]for i in range (len(patterns)): print(patterns[i])Here's a question for the masters. ㅠ

2 years ago

3 answers
72 views
0
Python Multiple FOR Statements (3-fold?)

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 ...

2 years ago

1 answers
96 views
0
Python for

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...

2 years ago
« - 3 - »

© 2024 OneMinuteCode. All rights reserved.