- 3

What is the result of this code? print ("{0}{1}{0}.format ("abra" ,"cad"))

string formatting

1st Apr 2017, 4:50 PM
Kabelo Selebi
Kabelo Selebi - avatar
10 Respuestas
+ 6
u got some Syntax errors. anyway. {0} => "abra" {1} => "cad" print ("{0}{1}{0}".format ("abra" ,"cad")) output: abracadabra
1st Apr 2017, 4:58 PM
Eranga
Eranga - avatar
+ 4
What is the result of this code? print("{0}{1}{0}".format("abra", "cad")) abracadabra since {0} = abra {1} = cad {0} = abra so answer is abracadabra
6th Oct 2020, 2:49 PM
Shravani Jogu
Shravani Jogu - avatar
+ 1
ans:abracadabra
16th May 2017, 12:53 PM
Mahnoor Shahzad
Mahnoor Shahzad - avatar
0
What is the output of this code? def test(func, arg): return func(func(arg)) def mult(x): return x * x print(test(mult, 2))
8th Jul 2018, 12:26 PM
surajbhan sahu
0
What is the result of this code? print("{0}{1}{0}".format("abra", "cad")) print 0 will print the argument abra and 1 will print the argument cad hence, abra{0}cad{1}again abra{0} ans:abracadabra
1st Apr 2019, 5:59 AM
SUJITHA.P
SUJITHA.P - avatar
0
Abracadabra
24th Jun 2020, 4:19 AM
Pratiksha Kallapa Patil
0
>>> abracadabra
1st Aug 2020, 12:05 PM
Manuchehr Raupov
Manuchehr Raupov - avatar
0
What is the result of this code? print("{0}{1}{0}".format("abra", "cad")) index 0 Index 1 Index 0 abra cad abra Ans: abracadabra
5th Dec 2020, 4:21 PM
IRFAN KHAN
IRFAN KHAN - avatar
0
abracadabra
18th May 2021, 4:07 AM
Salimov Furqat
Salimov Furqat - avatar
0
What's the result of this code? print("{0}{1}{0}".format("abra", "cad")) Answer is abracadabra
20th May 2021, 11:47 AM
Janhvi Tiwari
Janhvi Tiwari - avatar