- 2
The code is equal to first letter of a book followed by the number of character in the title.
Ex the book "Harry Potter", the code would be:H12 as it contains 12 character (including space) please help https://code.sololearn.com/cl1xxf103419/?ref=app
4 odpowiedzi
+ 4
saquib ,
it looks like your task description is not as complete as it could be.
if you really have a problem, we need some more details from you:
▪︎give a clear and complete description about your task
▪︎if there are error messages please post them here
▪︎give at least one sample with input data and the expected output
▪︎to be able to find out the issues you have, we need to see your code
=> please put your code in playground, save it there and post a link to it here.
thanks for your understanding!
+ 3
Hi Saquib,
This topic had been discussed before. So please use the search bar to find similar threads using 'python book title' search term. It is also advised to switch the scope filter to 'Most Popular'.
Good luck! 👍
+ 2
#Enter your name
Name = input("Enter your name\n")
#The len() function returns the number of items in an object.
print(len(Name))
#Using array method to get first letter of input
print(Name[0])
+ 1
Thanks for the help