Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /usr/bin/env python3.2
- # -*- coding: utf-8 -*-
- # main.py
- """ Task: Exercise 2.2
- Write a program that uses raw_input to prompt a user for their name and
- then welcomes them.
- Enter your name: Chuck
- Hello Chuck
- """
- """ Additional comment: This python source code is written in python 3.x!
- So 'print "abc"' -> 'print("abc")' and 'raw_input()' -> 'input()', ...
- """
- # Includes
- # Main
- username = input("Enter your name: ")
- print("Hello " + username)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement