From the course: Python Quick Start
Unlock this course with a free trial
Join today to access over 24,800 courses taught by industry experts.
Using built-in functions in Python - Python Tutorial
From the course: Python Quick Start
Using built-in functions in Python
Python has some functions that have already been defined. These are called built-in functions and they're available for you to use any time. By the end of this lesson, you'll be able to use a couple of important built-in functions in Python. A handy built-in function is Print and in programming, printing means showing something on the screen. So the print function in Python takes data and prints out the data so that it's displayed on the screen. A cool thing about the print function is that it works with any type of data. For example, if I wanted to print out the phrase, "Hello World" I would write print ('Hello World') in quotes. And now I'm going to run the cell by hitting "Shift-Enter." There, I just printed out a string. Let's look at another example. If I wanted to display the result of 2000 plus 19 on the screen, I would write print (2000 +19), and now I'm going to run by hitting "Shift-Enter." There it is. The computer performed the arithmetic operation 2000 plus 19, resulting…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.