Why this code output error?
The parentheses in the for-loop do not match. What is src()? There is no src defined. Note that you can only concentate strings, not numbers.
There is a syntax error in the code you provided. In the for loop, the print() statement is missing a closing parenthesis after len(i). Syntax error on scr, it should be str. https://code.sololearn.com/cOJXHOEW6QZs/?ref=app
# Created by Ankora file = open("/usercode/files/books.txt", "r") for i in file.readlines(): print(i+str(len(i))) file.close()
Okay, thanks I was forget to put one parentesis the scr and not str was at that time
I do this code almost 5 times
How do I generate a list with <N> unique elements randomly selected from another (already existing) list?
Given three integer matrices A(m*n),B(m*n) and C(m*n) . Print the one with more zero elements. beside code
I'm coding this for hours & can't make the value of the 5 random numbers round off to 2 decimal places like in the examples
Overloading + operator
( NEED HELP ) Halloween candy