Advertisement
Mars83

2-2

Oct 3rd, 2011
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. #! /usr/bin/env python3.2
  2. # -*- coding: utf-8 -*-
  3.  
  4. # main.py
  5. """ Task: Exercise 2.2
  6.    Write a program that uses raw_input to prompt a user for their name and
  7.    then welcomes them.
  8.    Enter your name: Chuck
  9.    Hello Chuck
  10. """
  11. """ Additional comment: This python source code is written in python 3.x!
  12.    So 'print "abc"' -> 'print("abc")' and 'raw_input()' -> 'input()', ...
  13. """
  14.  
  15. # Includes
  16.  
  17. # Main
  18. username = input("Enter your name: ")
  19. print("Hello " + username)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement