+ 1
Name buddy
Can you help me, please… This cod works with all tasks except one, that’s locked. I don’t know what the problem is. Thanks for helping! :) https://code.sololearn.com/cJj5z48SC0hz/?ref=app
15 Respuestas
+ 12
Michael Ivanov ,
Post your attempted code...to see what the problem your code is having ...
+ 8
Dragon RB ,
Oh thank you i didn't know the code coach problem statement i just modified the code which is posted
+ 8
Michael Ivanov ,
https://code.sololearn.com/cyOIRP6N48vW/?ref=app
Try this...i modified my above code a Lil ..
https://code.sololearn.com/cJCAdQDeotY7/?ref=app
if still there is error...i lil modified the condition statement... that even if you give input in uppercase...it will convert to lowercase and compare it....
+ 8
Michael Ivanov ,
It works... make sure that the indentations are proper in your code....
+ 7
https://code.sololearn.com/cGE5P2Ag49h8/?ref=app
Michael Ivanov ,
Try this and see
+ 4
Show your attempt
+ 2
Michael Ivanov Please do not paste your code in the comment section or paste the whole code in the description!! Prefer give us a link to your code in SoloLearn, so we can see the output.
+ 2
Michael Ivanov SoloLearn menu -> Create -> new code -> Choose language -> Write your code here -> save -> name your code(make code public would make the code visible to everyone, but I think when posting code in Q&A you should mark as private) -> save.
Now, in comment section, click on the "+" button -> insert code -> my code bits -> click on the code you need help.
+ 2
What are you trying to archive?
+ 1
Sorry.. Can we see your attempt please??
+ 1
Riya Sis, that won't work. As far as I remember, the code coach tells us to print "Compare notes" if the first character of any person name is equal to the 2nd input's ones.
For example:
Python Java C++ C#
JavaScript
#Outputs compare notes(Since first character of JavaScript is equal to Java's ones in the group
Python Java C++ C#
Kotlin
#Outputs no such luck
+ 1
Michael Ivanov I tried Riya's code and it works man
0
names=input()
my_name=input()
letters=[word[0] for word in names.split()]
my_letter=[x[0] for x in my_name]
for i in letters:
if i is my_letter[0]:
print('Compare notes')
break
else:
print('No such luck')
break
0
Riya
Your cods don’t work
Sorry
0
It says: line 5 parsing failed: ‘inconsisting use of tabs and spaces in indentation’