You are on page 1of 11
Enter your name: Jack Enter your marks in range 1-160 Enter your marks in Maths: 98 Enter your marks in Chemistry: 97 Enter your marks in Physics: 93 Your percentage is: 96.€ -sxeeacaLcuLAToR®##** (re, ed Ce . DY, CRS Please enter operator from above list Enter first nunber: 78 Enter second nunber: 65 Result: 5070 Do you want to perform calculations again? (y / n) Enter y for yes and n for no: y Please enter operator from above list: / Enter first number: 67 Enter second nunber: 87 Result: @.7701149425287356 Do you want to perform calculations again? (y / n) Enter y for yes and n for no: Closing Calculator... Aienty Define Uses (yon) Use using spend) function: [Python 4, “Gee "A 2] List after using eterd() fonctions [Python 4, “Cee A 8's o's 8", be] List after using isert() fonction (adding element 26 9 index 3): [Rython 4, “Coes fe, be] List after imleneting renove() fonction, (rmovet36)): Python's 4, "Cees A 5's Use after imlenenting pon) function: [Python's 4, “Cees "Ay "25's "o's 38") st after tnpleneting sce function hon, es) Mies 28") Seo a0) 25,“ “201 List after imlenenting reverse) function: (0°, "o's 5", se of Liat wuing an( funtion: 7 iniman amine Sn 88 (2,2, 3] 4 simi elame Sn st (1,2, 3]: 9 ‘After Leplenenting court() function: @ ‘ter implementing concatenate() function: 1, 2, 8, 8, "Python, 4, "Cet", "A, "25", “Go, “30"] ‘After implementing mltiply() function: ("Python 6, "C44", (A, 25", "GO', 10", “Python's 4, CH", “A, 25", “Go's 0") ‘after Seplementing Snden() function: 2 List [4, 2, 9, 4, 7] after deplenenting sort() function: [8s 2, 4, 7s 8] 2 (1, 2, 3} 1 {4, 5, 6} set 1 set 2 After Using add() : (3, 4, 5, 6} After Using union() : {1, 2, 3, 4, 5, 6} After Using intersection() : {3} After Using difference() : {1, 2} After Using clear() : set() Dict 1: {1: "Hello", 2: ‘Good’, 3: ‘Morning’} Element with key : 1 is Hello All the keys in dict : dict_keys((1, 2, 3]) Al] the values in dict : dict_values({‘Hello’, "Good", ‘Morning’]) All the keys and value in dict : dict_items({(1, ‘Hello’), (2, “Good’), (3, ‘Morning’)]) After using update() : {1: ‘Hello’, ‘Good, 3: "Night"} Value Poped : Night After using clear() values remained : None Tuple 1: (@, @, 1, 2) Count of @ is : 2 Index of 2 is : 3 break statement 13579111315 17 19 2123 hen i is even then it continue to next nunber when i becones equal to 25 break is used to exit from loop String 1: james String 2: Hello, And Welcome To My World! James True count() Occurence of e: 1 b’james” JANES james Index of e: 3 james False False False True False Enter the phrase: Computer Science Engineering The acronym for your phrase is CSE. My name is Bhupender & I an 20 years old. My name is ahhichek RT am 20 vears ald

You might also like