Basic Functions (your first program)
Print function
The print function display a string value inside the parenthesis on the screen
print('Hello world')
print( 'I hope you have a nice day')
The input function
The input function waits that the user put some text on the keyboard and press enter
The Len Function
You can pass a len value string value and it will reply with the number of character on that string
here is another example
Now let see what happens if you try to put together something like
I am 30 years old
print(' I am ' + 30 + 'years old')
You need to pass 30 as a string
Now let see how all of them work together
😏
Thanks in advance!
Basic Functions (your first program)
Reviewed by ohhhvictor
on
May 12, 2019
Rating:
No comments: