What would output this code? print(hello world)

It would be an error since you can only print a string. To make a string we must have "" or str() print("hello world")

TJ

Related Python Mentoring answers

All answers ▸

Write a program that takes a value x and then outputs x Fibonnaci numbers. E.g. if x=6 output would be 1 1 2 3 5 8


[Exam style] Python is an interpreted language. Explain what this means and how interpreted languages differ from compiled languages.


What is the difference between a FOR loop and WHILE loop and how do I write them?


Give a segment of python code that will print the numbers 1 to 7, each one on a new line