+ 2

Why does Python hates my ":"?

for example: the input should be a adgs and then the output will be: start 2 https://code.sololearn.com/c1i2Ufqd7xZc/?ref=app

17th Jun 2018, 9:27 PM
misgav yosef
misgav yosef - avatar
1 Resposta
+ 5
You have to add yet another closing bracket ) in line 8. Also, you'll encounter an error in line 4, as you try to assign r to the pattern variable. And r is not defined elsewhere. Simply write: pattern = x -- that will work.
17th Jun 2018, 9:54 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar