Assignment in python?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
10 views
What is the reason?
b = ['5', '6', '7'] C = b.count('5') print(c)

Error:
Traceback (most recent call last): File "", line 1, in NameError: name 'c' is not defined
by | 10 views

2 Answers

0 like 0 dislike
Before opening the spoiler, try to find the bug yourself
Do not stir the Cyrillic alphabet and the Latin alphabet in code
by
0 like 0 dislike
C = b.count('5')

You have "s" written in Cyrillic, apparently the layout is not switched.
by

Related questions

0 like 0 dislike
1 answer
asked May 4, 2019 by Bastax13
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
35,406 users