kode2go / python

Lessons on learning python programming.
0 stars 0 forks source link

Python Exercises: Q9 #9

Open kode2go opened 3 years ago

kode2go commented 3 years ago
  1. Write a Python program to display the examination schedule. (extract the date from exam_st_date). exam_st_date = "(11, 12, 2014)" Sample Output :
    The examination will start from : 11 / 12 / 2014
kode2go commented 3 years ago
exam_str_date = "(11,12,2014)"
day = exam_str_date[1:3]
month = exam_str_date[4:6]
year = exam_str_date[7:11]
# print("exam date starts: ",day)
print("print exam start date: ",day,'/',month,'/',year)