N Ngân Lam New member Sep 20, 2021 #1 What will be the output of the following Python code? Code: s='%s, %s & %s' s%('mumbai', 'kolkata', 'delhi') A. mumbai kolkata & delhi B. Error C. No output D. ‘mumbai, kolkata & delhi’
What will be the output of the following Python code? Code: s='%s, %s & %s' s%('mumbai', 'kolkata', 'delhi') A. mumbai kolkata & delhi B. Error C. No output D. ‘mumbai, kolkata & delhi’
K Kim Thu Đoàn New member Sep 20, 2021 #2 Answer: d Explanation: In the code shown above, the format specifier %s is replaced by the designated substitution. Hence the output of the code shown above is: ‘mumbai, kolkata & delhi’. Upvote 0 Downvote
Answer: d Explanation: In the code shown above, the format specifier %s is replaced by the designated substitution. Hence the output of the code shown above is: ‘mumbai, kolkata & delhi’.