+ 1
The program must be print SoloLearn as the output. Note- S and L are in upper case. Can anyone send me the code...???
20 Respostas
+ 4
Long but different from others
Have a look
https://code.sololearn.com/cH4GIcW0ArR8/?ref=app
+ 7
This is a version that uses slices and title() method of strings:
inp = 'sololearn'
print(inp[:4].title()+inp[4:].title())
Its a kind of hard-coded, but anyway... That's how the description is.
Task could also be like this:
inp = ['solo','learn']
print(''.join([i.title() for i in inp]))
+ 3
Here is your fix according to what you are trying to do in your code👇
https://code.sololearn.com/cPou1I21y0G7/?ref=app
and here is what you want to do *According to question* and this is what me and Ćheyat said👇
https://code.sololearn.com/cu630E1tBNn2/?ref=app
+ 2
Print("SoloLearn")
+ 2
//print("SoloLearn")
//puts "SoloLearn"
//System.out.print("SoloLearn");
//std::cout << "SoloLearn";
//printf("SoloLearn");
//console.log("SoloLearn");
//<h1>SoloLearn</h1>
//Console.Write("SoloLearn");
//echo "SoloLearn";
//? "SoloLearn"
//PRINT "SoloLearn"
//Writeln "SoloLearn"
// NSLog(@"SoloLearn");
print("Show your code");
-Extended from Arsenic
+ 2
Husnain Ansari ,Send you code here.
+ 2
Could you please refer the link to your code please.
+ 2
a,l_count = list("sololearn"),0
for i in range(len(a)):
if(a[i]=="s" or (a[i]=="l" and l_count ==1)):
a[i] = a[i].upper()
elif a[i]=="l":
l_count+=1
print ("".join(a))
+ 1
It's weird that you profile says you have completed courses of 3 programming languages , but still you are not able to print a simple text on the console.
0
Error: expected declaration specifiers
0
It's showing again error like expected declaration specifiers or before string constant...
0
Husnain Ansari What? Clarify Please!
0
String='SkillRack'
Print(string.upper)
0
I already tried... what you sent me...
0
We just want S and L are in capital letter not all string...
0
Then use ꧁༒Rishabh༒꧂ 's example
0
Code is executed in console but in skillrack are showing error??
0
print("SoloLearn") there
0
print("SoloLearn")
0
msg = "solo learn"
msg = msg.title()
msg = msg.replace(" ","")
print(msg)
Tested ✔