indentation tag

6 questions


1 answers
64 views
0
I get this kind of error. Help me IndentationError: unindent does not match any outer indentation level

What's the problem 탭 스페이스 Is it a tab space gap problem? I erased everything that was written in front of me and set it up with a tab, but it still doesn't work (Crying)

2 years ago

1 answers
64 views
0
Help! IndentationError: unindent does not match any outer indication level

If I run this code, I get an error ㅜ 왜 Why?import sysdef Factorial(n): # Return factorial result = 0 for i in range (1,n): result = result * i print factorial is ,result return resultIndentationErro...

2 years ago

1 answers
66 views
0
An IndentationError error occurs.

def quotient(a, b): if b == 1: return a else: if a > b: a = a - b p = p + 1 else: return p return quotient(a, b)If you do this, the indentationError: unindent does not match any outer ind...

2 years ago

1 answers
84 views
0
Which do you use for indentation in Python, tab or space?

I indented it with a tap when I made the Python codeI'm asking because I heard that it's better to float it in space because the length of the tab is different between editorsHow are other Python deve...


1 answers
94 views
0
IndentationError Question

The following code was written to solve the Montyhole problem with Python.for _ in range(trial): Gift = random.randomint (0, 2) player_choice = random.randint(0, 2) Fail = [] for i in range(3):       ...


1 answers
70 views
0
Python unindent does not match any outer indentation level error.

import random as rd class Vocabulary: def __init__(self, wdict): self.words = wdict.copy() self.untrained = set(self.words) self.renew() def renew(self): self.target = list(se...

2 years ago

© 2024 OneMinuteCode. All rights reserved.