Advertisements
Advertisements
प्रश्न
Identify the invalid Python statement out of the following options:
विकल्प
print("A",10,end="*")print("A",sep="*",10)print("A",10,sep="*")print("A"*10)
MCQ
Advertisements
उत्तर
print("A",sep="*",10)
Explanation:
When using the sep parameter in the print() function, all the values to be printed must be listed first, followed by the sep keyword argument. Option print("A",sep="*",10) is invalid because sep is placed before all positional arguments are provided.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
