Python Problem 1: Print

4 coders code in Python.

Which is right?

1)Print("Hi")

2)print(Hi)

3)print ("Hi")

4)print("Hi")

4 2 3 1

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Ben Hasluck
Dec 9, 2018

The reason it is coder 4 is the others either forgot the ", put a space there or put the "p" as a capital.

space is not error

Hasmik Garyaka - 2 years, 3 months ago

Log in to reply

space is an error thank you very much

Jad Essadki - 1 year, 9 months ago

Log in to reply

NO SPACE IS NOT ERROR

Hasmik Garyaka - 1 year, 9 months ago
Jonathan Eshetu
Nov 8, 2020

Technically everyone is right except 1), because

2) Hi could be a previously defined variable; 3) Spaces work just fine with print(); 4) There's nothing wrong with this one.

Hasmik Garyaka
Sep 14, 2019

You can see than Python IDLE runs this operator correctly

probably older version

Jad Essadki - 1 year, 8 months ago

Log in to reply

Nope. I have the latest version, and putting a space works just fine on mine.

Jonathan Eshetu - 7 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...