Telegram Group & Telegram Channel
Что выведет этот код?

Ответ: 1.

Потому что все строки-литералы разделенные любым количеством пробелов соединяются в одну.

То есть:

"Hello" "World"
то же самое, что и "HelloWorld"


Это работает и с одинарными, двойными, тройными кавычками.

x = 'One' "Two" '''Three'''

print(x)
# OneTwoThree

Однако это работает только с литералами.

s1 = "String1"
s2 = "String2"

print(s1 s2)
# SyntaxError: invalid syntax.

В итоге у нас список из одного элемента:

["AppleBananaOrangePineapple"]

#strings #строки



tg-me.com/pythrone/8
Create:
Last Update:

Что выведет этот код?

Ответ: 1.

Потому что все строки-литералы разделенные любым количеством пробелов соединяются в одну.

То есть:

"Hello" "World"
то же самое, что и "HelloWorld"


Это работает и с одинарными, двойными, тройными кавычками.

x = 'One' "Two" '''Three'''

print(x)
# OneTwoThree

Однако это работает только с литералами.

s1 = "String1"
s2 = "String2"

print(s1 s2)
# SyntaxError: invalid syntax.

В итоге у нас список из одного элемента:

["AppleBananaOrangePineapple"]

#strings #строки

BY PyThrone




Share with your friend now:
tg-me.com/pythrone/8

View MORE
Open in Telegram


PyThrone Telegram | DID YOU KNOW?

Date: |

Telegram today rolling out an update which brings with it several new features.The update also adds interactive emoji. When you send one of the select animated emoji in chat, you can now tap on it to initiate a full screen animation. The update also adds interactive emoji. When you send one of the select animated emoji in chat, you can now tap on it to initiate a full screen animation. This is then visible to you or anyone else who's also present in chat at the moment. The animations are also accompanied by vibrations. This is then visible to you or anyone else who's also present in chat at the moment. The animations are also accompanied by vibrations.

Telegram has exploded as a hub for cybercriminals looking to buy, sell and share stolen data and hacking tools, new research shows, as the messaging app emerges as an alternative to the dark web.An investigation by cyber intelligence group Cyberint, together with the Financial Times, found a ballooning network of hackers sharing data leaks on the popular messaging platform, sometimes in channels with tens of thousands of subscribers, lured by its ease of use and light-touch moderation.PyThrone from it


Telegram PyThrone
FROM USA