asked 182k views
4 votes
Try to answer the following question without running the code in Python: If we run the following line: y = int(3 * '4') what is the value of $y$?

1 Answer

5 votes

Answer:

444.

Explanation:

The '4' is considered to be a string so if you print y you would get 444. The int means 'integral, ( I believe).

answered
User Rob McCready
by
7.9k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.