Cours
Se connecterCommencer à apprendre l'IA
Cours
Se connecterCommencer à apprendre l'IA
+ 2

What's wrong with my program?

It fails in test case 5 and test case 12 https://code.sololearn.com/cXy3UVlPd8Wp/?ref=app

pythoncodepython3helppasswordvalidatorcoach
8th Jun 2020, 6:17 PM
Sindbad
Sindbad - avatar
2 Réponses
+ 4
Use 'and' rather than '&' in line 16. and is the and operator in Python, & is the bitwise intersection operator.
8th Jun 2020, 6:25 PM
Russ
Russ - avatar
+ 2
Russ thanks mate
8th Jun 2020, 6:42 PM
Sindbad
Sindbad - avatar

Vous avez souvent des questions comme celle-ci ?

Apprenez de manière plus efficace, gratuitement :

  • Introduction à Python

    7.1M apprenants

  • Introduction à Java

    4.7M apprenants

  • Introduction à C

    1.5M apprenants

  • Introduction à HTML

    7.5M apprenants

Voir tous les cours
Aujourd'hui en vedette
Ошибка в приложении Sololearn
1 Votes
Is anyone else experiencing this Sololearn issue?
0 Votes
NEO V2.0
1 Votes
Sololearn course
1 Votes
solo learn program issue - iPhone?
1 Votes
Is it possible to write Rust code that is as compact and expressive as Python?
0 Votes
Bug sur le deuxième cours de python
1 Votes
Best language?
0 Votes
I am learning javascript intrmdt but when I play a code challenge. The app is givin me comlecated questions with less time.why?
0 Votes
Learn - multiple choice course questions display in one box making it impossible to continue
1 Votes