Help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Help

Вам дан файл "books.txt" с названиями книг, каждое на новой строке. Чтобы зашифровать названия книг, вам нужно взять первые буквы каждого слова в названии и объединить их. Например, для названия книги "Game of Thrones" зашифрованная версия будет "GoT". Завершите программу, чтобы прочитать названия книг из файла и вывести зашифрованные версии, каждую на новой строке.

23rd Jul 2022, 2:27 PM
YourAnonOne
YourAnonOne - avatar
11 Answers
+ 1
YourAnonOne books = open("books.txt").readlines() for i in books: x = i.split() Res = '' for j in x: Res = Res + j[0] print(Res)
25th Jul 2022, 7:20 AM
Twinkle 💫
+ 2
Help You are given a file "books.txt" with the titles of the books, each on a new line. To encrypt book titles, you need to take the first letters of each word in the title and concatenate them. For example, for the name
24th Jul 2022, 1:49 PM
YourAnonOne
YourAnonOne - avatar
+ 1
English pls?
24th Jul 2022, 9:50 AM
11B57
11B57 - avatar
0
Great thanks
24th Jul 2022, 5:59 PM
YourAnonOne
YourAnonOne - avatar
0
YourAnonOne this question seems a little bit to hard to understand. Try Translating or Clue for your Quest, Thanks
24th Jul 2022, 9:53 PM
11B57
11B57 - avatar
- 1
How are you
24th Jul 2022, 5:57 PM
Motaher hossan
Motaher hossan - avatar
- 1
and you
24th Jul 2022, 5:59 PM
YourAnonOne
YourAnonOne - avatar
- 1
Well
24th Jul 2022, 5:59 PM
Motaher hossan
Motaher hossan - avatar
- 1
thalnsk
25th Jul 2022, 8:28 AM
YourAnonOne
YourAnonOne - avatar
- 2
Hi
24th Jul 2022, 5:54 PM
Motaher hossan
Motaher hossan - avatar
- 2
hi
24th Jul 2022, 5:55 PM
YourAnonOne
YourAnonOne - avatar