91.3k views
0 votes
What will the following code display? var = '$' print( ())

User Genki
by
8.0k points

1 Answer

4 votes

Final answer:

The code will display nothing because the print() function is called without any arguments.

Step-by-step explanation:

The code will display nothing because the print() function is called without any arguments. The line var = '$' is irrelevant to the output as it is not being used. To display the dollar sign, you need to pass it as an argument to the print() function.

User Dmitriy Yerchick
by
8.8k points