Convert strings to integer
Answer: C Solution: x is an int, and y is a string. The call to `int(y)` obtains the integer value from y (string "5") ie the integer 5. Thus, int(y) is integer 5. x is also integer 5. The printed value is their sum, ie 10. int is a handy function for converting to integer.
0
0
6
0
553
0
0
0
0
109
United States Trends
- 1. Epstein 744K posts
- 2. Bill Clinton 74.6K posts
- 3. TravisScott 1,675 posts
- 4. Michael Jackson 30.6K posts
- 5. Elise Stefanik 12K posts
- 6. Dashie 1,209 posts
- 7. Oklahoma 30.9K posts
- 8. Chris Tucker 4,782 posts
- 9. Lamarr 8,782 posts
- 10. The DOJ 154K posts
- 11. Jake Paul 36.5K posts
- 12. Diana Ross 2,408 posts
- 13. Timmy 12.2K posts
- 14. #JakeJoshua 14.3K posts
- 15. ISIS in Syria 14.4K posts
- 16. #RollTide 4,621 posts
- 17. Rays 15.8K posts
- 18. Caroline Dubois N/A
- 19. Slick Willy 3,410 posts
- 20. Marty Supreme 14.8K posts
Loading...
Something went wrong.
Something went wrong.