วันจันทร์ที่ 26 ตุลาคม พ.ศ. 2558

Lab 6 - Write a function that takes a string as an argument and prints out the string in large letters

def setup():
   word=input()
   display(word)

def display(word):
   j1="#######"
   j2="   #   "
   j3="#  #   "
   j4="  #    "
   j=[j1,j2,j3,j4]
   a1="  # #  "
   a2=" #   # "
   a3="#######"
   a4="#     #"
   a=[a1,a2,a3,a4]
   v1="#     #"
   v2=" #   # "
   v3="  # #  "
   v4="   #   "
   v=[v1,v2,v3,v4]
   i=0
   j=0
   while (i < len(n)): // Check by side
      while (j < len(word)): //  Check by column
         if (word[j] == 'j'):
            print(n[i] , end=" ")
         if(word[j]=='a'):
            print(u[i] , end=" ")
         if (word[j]=='v'):
            print(t[i] , end=" ")
         j=j+1
      j=0
      print()
      i=i+1

setup()

ไม่มีความคิดเห็น:

แสดงความคิดเห็น