GCSE Python #5: Printing, Comments, and Casting

Опубликовано: 17 Апрель 2020
на канале: MrBrownCS
4,771
48

Introducing some more important concepts in Python, mainly with the aim of being able to output some information to a user's screen (which is what print is used for).

Try Now Answers:
1. "Guido is 64 years old" (by default the separator is just one space and replaces that comma)
2. Something like: print(name+": "+str(age)). The integer 'age' needs to be casted to a string to concatenate.
3. b) because salesPrice is being assigned the product of 2 floats, making it a float. Then, without any casting to a string, in the 3rd line it is being concatenated with two strings, which causes the error.

Any questions/ feedback/ enquiries: tutorcomputerscience@gmail.com


На этой странице сайта вы можете посмотреть видео онлайн GCSE Python #5: Printing, Comments, and Casting длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь MrBrownCS 17 Апрель 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 4,771 раз и оно понравилось 48 зрителям. Приятного просмотра!