0% found this document useful (0 votes)
24 views1 page

Python Basics: Functions and Strings

The document provides notes on basic Python concepts, specifically focusing on the print function and strings. It explains that print() is a function and that strings are sequences of characters, including spaces. An example is given with the string 'hello world' to illustrate these points.

Uploaded by

juliettehailand
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views1 page

Python Basics: Functions and Strings

The document provides notes on basic Python concepts, specifically focusing on the print function and strings. It explains that print() is a function and that strings are sequences of characters, including spaces. An example is given with the string 'hello world' to illustrate these points.

Uploaded by

juliettehailand
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd

~ python notes ~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~
if we said print("hello world")

print(""): is a function

we define functions with parentheses ( when you see parenthesis you know
that it is a function)

but the thing inside the quotations is called string ("hello world")

string: is a sequence of characters(letters,numbers,etc...)

ex: in hello world (just like how we consider the h a character the space that
we left between the words is also considered as a character)

if you saw a bunch of characters in (" ") you can know that this is a string

You might also like