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
Answered by Tanya J. Python tutor

1635 Views

See similar Python Mentoring tutors

Related Python Mentoring answers

All answers ▸

how to compute the factorial of a number.


[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 cycle "if" and "while"?


Define a function that takes in the age of the user and adds it to an output sentence such as "You are ..... old".


We're here to help

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

© MyTutorWeb Ltd 2013–2025

Terms & Conditions|Privacy Policy
Cookie Preferences