Quick actions

cmd+k|ctrl+k

Navigation

Languages

ZtM_Sec3Vid32_Strings

Snippet info

Language

Python

Visibility

public

Author

orrherm

Created

2025-04-06T21:02:44.660867Z

Updated

2025-04-06T21:02:44.660867Z

#Lecture 31 - Strings

###You can use both single quotes and double to make strings###

username = 'elloIssaMe'
password = "Mario"

#If you need a loooong string, you can use 3 single/double quotes in a raw. That'll cause everything 
#that's between the opening 3 quotes and the end to be a string

long_boi = """WOW
I can't believe you've got
such a long string
omg how is it gonna fit
"""

print(long_boi)

#You can also join strings together, just like numbers - utilizing operators.
a = 'Hi! my name is,'
b = "WHO? My name is,"
c = "HE? My name is,"
d = 'Cheeky Breeki Slim Shahidi'

print(a + ' ' + b + ' ' + c + ' ' + d)
INFO