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")

Answered by Tanya J. Python tutor

1452 Views

See similar Python Mentoring tutors

Related Python Mentoring answers

All answers ▸

How could I write a program to convert Km/h to m/s in python


Explain the difference between local and global variables


[Student query] Why do we import libraries/modules such as Numpy and Matplotlib into Python?


Whats the output of "for i in "hello world": print(i)" and why/how is this achieved


We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo
Cookie Preferences