
2-2
By:
Mars83 on
Oct 3rd, 2011 | syntax:
Python | size: 0.47 KB | hits: 102 | expires: Never
#! /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)