Q. Write Python command to display your school name, class, and section, separated by "-".


Answer :-

school = input("Enter Your School Name :- ")
clas = input ("Enter Your Class :- ")
section = input("Enter Your Section :- ")
print (school, "-", clas, "-", section)


Output:-


Enter Your School Name :- Path Walla
Enter Your Class :- 11
Enter Your Section :- A
Path Walla - 11 - A
>>>

10 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. I've one doubt in the coding we've to enter our name ???

    ReplyDelete
    Replies
    1. No, We have to enter school name only. No need to enter your name.

      Delete
  2. not good
    too bad
    not suitable
    better than java

    ReplyDelete
  3. Can i use the 'sep' keyword for seperating school, class and division

    ReplyDelete
  4. eda mone
    paithiyam
    loosu payalugala
    velayap parunga da
    gobaragiri babu

    ReplyDelete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post