r/PythonLearning • • Aug 12 '25

Why not 4th!

Post image

In the fourth argument is the string "end1 ", then why is the correct answer the 1st one
This is a Codechef practice problem

11 Upvotes

14 comments sorted by

View all comments

2

u/NaiveEscape1 Aug 12 '25

Can anyone please tell me why it printed 5, isn’t that a integer data type as its not in quotes?

1

u/No_Cook_2493 Aug 12 '25

You can print integer data types in python. Print("number ",5) will output number 5 in the console