![]() Python Shell is great for testing small chunks of code but there is one problem - the statements you enter in the Python shell are not saved anywhere. To quit the Python shell in Windows hit Ctrl+Z followed by the Enter Key, On Linux or Mac hit Ctrl+D followed by Enter key. ![]() A program usually consists of sequence of statements. Statements are of different types as we will see. ![]() A statement is simply a instruction for the Python interpreter to execute. In upcoming lessons we will discuss these concepts in great detail.Ĭommands such as 17 / 3, print("Big Python") are know as statements in programming. For example: "olleh", 'print it' are strings but 1 and 3 are not.ĭon't worry, we are not expecting you understand these things at this point. In our case, the print() function prints the argument (i.e "Big Python") it is given to the console.Ī string is just a sequence of string enclosed inside single or double quotes. Print() is a function - A function in programming is a chuck of code which does something very specific. We have just used two important programming constructs - A function and a string.
0 Comments
Leave a Reply. |