To show a message on python you have to use the print function which is probably the easiest, here’s an example:<\/p>\n
print (“Hello World”) #you<\/a> have to put “Hello World” between quotation marks because it is a string <\/p>\n This will show the user:<\/p>\n Hello World<\/p>\n You can also print variables with this function, for example:<\/p>\n num= 1<\/p>\n print (num) #no<\/a> quotation marks because num is a variable that contains a number<\/p>\n This will show the user:<\/p>\n 1<\/p>\n BUT if you put num= helloworld this will show an error that says that helloworld is not defined because the program will take helloworld as another variable. If you want to add a string to a variable it must be between quotation marks like this:<\/p>\n num= “helloworld”<\/p>\n print (num)<\/p>\n This will show the user:<\/p>\n helloworld<\/p>\n \ud83d\ude42<\/p>\n <\/p>\n #mastery10<\/a><\/p>\n #TC1014<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":" To show a message on python you have to use the print function which is probably the easiest, here’s an example:print (“Hello World”) #you have to put “Hello World” between quotation marks because it is a string This will show the user:He… Continue reading