+ 1

Why following code is having syntax error?

Hi, I am newbie. I was watching YouTube video about machine learning. I saw this code there. But when I try to run it syntax error occurs. https://code.sololearn.com/cyDnAFZ5WU1q/?ref=app

30th Apr 2019, 1:25 AM
Heramb Lonkar
Heramb Lonkar - avatar
2 Respuestas
+ 5
1. Your code is in Python 2. In Python 3, text inside print should be surrounded by parentheses. 2. sklearn module isn't available on SoloLearn.
30th Apr 2019, 2:08 AM
Diego
Diego - avatar