c = raw_input("Type one character: ")
print "The character you typed is: %c" %c
s = raw_input("Type a string (Less than 80 characters):")
print "The string typed is: %s" %s
f_var = 10.12576893
print "Output 1: %f" %f_var
print "Output 2: %20f" %f_var
print "Output 3: %-20f" %f_var
print "Output 4: %+f" %f_var
wid_prec = int(raw_input("Input the width: "))
print "Output 5: %*f" %(wid_prec,f_var)
print "Output 6: %.5f" %f_var
wid_prec = int(raw_input("Input the precision: "))
print "Output 7: %20.*f" %(wid_prec,f_var)
print "Output 8: %-+20.5f" %(f_var)
print "Input an integer followed by a floating-point number:"
int_var = int(raw_input("integer:"))
float_var=float(raw_input("float:"))
print "The Integer: %d" %int_var
print "The floating-point number: %f" %float_var
#counting the inputs from user using raw_input() is not possible in Python. Hence, skipping the example
print "Input the day, followed by the date (dd-mm-yyyy):"
day = raw_input("day:")
date = int(raw_input("date:"))
month = int(raw_input("month:"))
year = int(raw_input("year:"))
print "Day: %s" %day
print "Date: %s" %date
print "Month: %s" %month
print "Year: %s" %year
print "Enter two strings: "
string1 = raw_input("string1:")
string2 = raw_input("string2:")
print "You have input:"
print string1
print string2
#getting input from user the way it is given in textbook is not possible in Python.
#Hence, output will be different compared to textbook.
print "Input two string: "
string1 = raw_input("String 1: ")
string2 = raw_input("String 2: ")
print "The two strings are: %4s" %string1
print "The two strings are: %5s" %string2
print "Input the date:"
date = int(raw_input("date:"))
separator1 = raw_input("separator:")
month = int(raw_input("month:"))
separator2 = raw_input("separator:")
year = int(raw_input("year:"))
print "Date: %d" %date
print "Month: %d" %month
print "Year: %d" %year
print "Input the date:"
date = int(raw_input("date:"))
month = int(raw_input("month:"))
year = int(raw_input("year:"))
print "Date: %d" %date
print "Month: %d" %month
print "Year: %d" %year