Make sure scanner name doesn’t exist already | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Make sure scanner name doesn’t exist already

https://code.sololearn.com/cst0Pq4F1Cd7/?ref=app

13th Jan 2023, 9:25 PM
Cristian Cobb
Cristian Cobb - avatar
3 Answers
+ 3
Check line by line you will get where are the problems.
14th Jan 2023, 3:18 PM
A͢J
A͢J - avatar
+ 2
Many mistakes in code: 1 - Indentation problem 2 - parenthesis () should be use with print function print ("xyz") 3 - colon (:) should be after each conditional statement and function declaration name if True: print ("xyz") def abc(): 4 - return should not be use without function 5 - print statement should not be after return statement.
14th Jan 2023, 4:18 AM
A͢J
A͢J - avatar
0
What lines? How would you write the function to make sure the scanner does not exist in the table already?
14th Jan 2023, 12:43 PM
Cristian Cobb
Cristian Cobb - avatar