Can anyone explain me this error?

0 votes

Can anyone tell me how to come out of this error?

Oct 14 in Python by anonymous
• 6,070 points
25 views

1 answer to this question.

0 votes

It is an Indentation error.
There should be an indent before def self() and the same for other functions of the class Bicycle

class Bicycle :
    def init(self):

Hope this helps!!!

answered Oct 14 by Gitika
• 49,580 points

Related Questions In Python

0 votes
0 answers

hello world, somebody can help me to correct this error

for label, value in s.iteritems():     s.set_value(label, ...READ MORE

Jun 5 in Python by WELL
• 140 points
156 views
0 votes
1 answer
0 votes
0 answers

Python error "ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv."

I tried upgrading pip using the following ...READ MORE

Oct 3, 2019 in Python by Hannah
• 18,410 points
2,667 views
0 votes
1 answer

Can somebody explain the output of this code snippet?

By making a copy of a list ...READ MORE

answered Jun 23 in Python by Ya Sd
71 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,561 views
0 votes
0 answers
+4 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,800 points
1,181 views
+1 vote
1 answer

Can anyone help me with this error: TypeError: list indices must be integers or slices, not str

Hi, @Varshap  It’s a TypeError, which tells us ...READ MORE

answered Nov 5 in Python by anonymous
• 49,580 points
78 views
0 votes
1 answer