This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Python 3.11.0 (main, Oct 24 2022, 00:00:00) [GCC 12.2.1 20220819 (Red Hat 12.2.1-2)] on linux | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>># First Program | |
>>> print("Hello, World!") | |
Hello, World! | |
>>> myName = input("What is your name? ") | |
What is your name? VachanMN | |
>>> print("Hello, " + myName + ", You will be " + str(int(myAge)+1) + " years old in one year.") | |
Hello, VachanMN, You will be 19 years old in one year. | |
>>> |