point is you need to keep value between them to significe the order we need to

Point is you need to keep value between them to

This preview shows page 1 - 3 out of 3 pages.

#point is, you need to keep '%' value between them to significe the order we need to assign those value var_1 = "Welcome to Suchir India" var_2 = "Fill in your details" print(var_1) print(var_2) print("Name: %s, Age: %d, Phone number: %d, Email address: %s, Qualification: %s" % ("Rahul", 22, 9290512228, "[email protected]", "B.A. Maths & Stats"))
Image of page 1
#Name: Rahul, Age: 22, Phone number: 9290512228, Email address: [email protected], Qualification: B.A. Maths & Stats Names = input("Enter your name: ") print(Name) Age = input("Enter your age: ") # it is showing as str format Age = int(input("Enter your age: ")) #NOW IT gonna show the int format #Evaluate = Calculation. It cannot calculate on string #Evaluate function in Python #it evalute the function in string format and produce the result Weight = eval(input("Enter your weight: ")) sum = eval("1+1-1") Sum #Triple quotes Statement = """Welcome to Suchir India""" print(Statement.capitalize()) #Welcome to suchir india print(Statement.casefold()) #welcome to suchir india print(Statement.center()) #Good Morning! Welcome to Suchir India print(Statement.count()) #you can find the count of particular letter or number in the statement print(Statement.encode()) #NO print(Statement.endswith()) #is last word is ending correctly, it shows with boolean function print(Statement.expandtabs(25)) #Casefold vs lower Statement1 = "der **Fluß88" print(Statement1.casefold()) print(Statement1.lower()) #Center Statement = """Welcome to Suchir India""" new_Statement = Statement.center(5) print ("Good Morning! ", new_Statement) #Count #Ex:1
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 3 pages?

  • Spring '20
  • Rahul Netha Hanumandla, Suchir India

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors