Part 5 | Python Programming | creating an input and printing the answer

Опубликовано: 31 Декабрь 2022
на канале: oOSylarTechOo
5
1

This is part 5 of a series of python coding that I am having fun with and want to show others that are interested or stuck.

Code Example:

#creating an input statement

#Make sure to the put the input into a variable
ans = input("How old are you? ")

You can add wording to either side of your answer that you are
printing but you must use the + symbol outside of the strings.

print("You are " + ans + " years old!")

#python #pythonprogramming #pythontutorial #pythonforbeginners #shorts

Music: Pad Subscription with Wondershare Filmora


На этой странице сайта вы можете посмотреть видео онлайн Part 5 | Python Programming | creating an input and printing the answer длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь oOSylarTechOo 31 Декабрь 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 5 раз и оно понравилось 1 зрителям. Приятного просмотра!