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

1585 Views

See similar Python Mentoring tutors

Related Python Mentoring answers

All answers ▸

Implement a fibonacci function which calculates the nth number of the fibonacci sequence.


Make a program that asks the user for a series of numbers until they either want to output the average or quit the program.


Use recursion to print all the sublists of a given list


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


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