0

Python Core task error

type = input() if type=="Visa" or type=="Amex": print("accepted") What's wrong? I'm a begginer. 💚

5th Aug 2022, 5:14 PM
Anna - Alina
6 Answers
+ 7
this issue with illegal characters can happen when we copy and paste from websites or by using not suitable editors like word processing programs.
5th Aug 2022, 5:40 PM
Lothar
Lothar - avatar
+ 6
in the line if... there are some illegal characters used that are control sequences (dec= 10, hex= 0a, start of manual message) re-type the line should help. this line should not have an indentation.
5th Aug 2022, 5:28 PM
Lothar
Lothar - avatar
+ 4
type is a keyword in python. How about cardtype?
5th Aug 2022, 8:25 PM
Oma Falk
Oma Falk - avatar
+ 1
I re-typed and it helped, I solved the task, still not what was the issue in the first place.
5th Aug 2022, 5:37 PM
Anna - Alina
0
I dont know , maybe I copied something idr now I will know, thanks 👍
5th Aug 2022, 5:41 PM
Anna - Alina
0
Bro can you type the code instead of copy and paste because if you type the code then the code will run successfully
7th Aug 2022, 2:55 PM
Kailash Yandrapu