The RHS in the above statement is '5' + '5'. m) print(5 % 10 + 10 < 50 and 29 <= 29) For example : Multiple strings : Strings storing multiple lines of text. num1 = 4 ** (3 + 5) = 4 ** 5 = 1024 String Manipulation. x = y a) Enter the length of the ladder: 16 Using Triple Quotes o(”’ or ” ” “) Conditional Operators. Enter the value of n: 5 Interactive Mode Programming and Script Mode Programming. i) Serial_no. y = 6 Sets are immutable. The ‘None’ literal is used to indicate something that has not yet been created. In which mode of Python, the interpreter is no longer active ? Solutions for Class 11 Computers x,y = y,x #Printing the temperature Write a program that asks the user to enter their name and age. print("When the radius is",r1,"cm, the volume of the sphere will be", round(volume1,2),"cc") ii) 1st_Room: Invalid - Identifier in Python cannot start with a number. b) (10,10) k) print(10 != 9 and 20 >= 20) How do we share global variables across modules in Python? e.g Rs. b) sum = (length + breadth)/2 #printing the values before swapping OUTPUT: height = round(length * sin,2) NCERT Solutions for class 11 Science Computer Science solved by subject matter experts. String Manipulation. All characters are significant. Software Concepts 3. Class 11 XI Python and Computer Fundamental NCERT TEXTBOOK, SOLUTIONS in PDF and PPT. config.b = 2 #defining three different radius using variables r1, r2, r3 Program: g) num1 = 24 // 4 // 2 Therefore, the output will be 'True'. Programming Methodology 6. Question 8: age = int(input("Enter your age: ")) The NCERT solutions for Class 11 Computer Science book have been made by Computer Science teacher of one of the best CBSE school in India. OUTPUT: If more than one word is used as a variable then it can be separated using underscore ( _ ), instead of space. Number data types store numeric values. In the statement expression of RHS will result into value 10 and when this is assigned to LHS (x), x will rebuild to 10. View NCERT Solutions for all chapters of Class 11. # not will be evaluated before and/or. b) 6, 4 volume2 = (4/3*22/7*r2**3) >>> x = x + y #When the operators are same, left to right order will be followed for operation be done internally to it. Getting Started with Python. All Python files have extension “.py”. Answer: 10 + 6 * 2 ** 2 != 9//4 - 3 Converts object x to an ex­pression string. print("The height reached by ladder with length",length,"feet and aligned at",degrees,"degrees is",height, "feet.") Addition:  11 #printing the values after swapping The values need to be passed in radians to the sin() function. print("The average of",a,b,"and",c,"is",average) The numbers written in the statement are in float data type therefore, the output will be also in float data type. print("The values of x and y are",x,"and",y,"respectively.") (c) abc@123 : Special characters aren’t allowed in variable names. CLASS 11; 2. Answer: Data Handling. “\” – size is 1. Variables x and y store the x-coordinate and the y-coordinate of a dart that hits the dartboard. Q 1 = Write instructions to get the following result: Math is Fun so don't be resistant. Enter the number of days required by C to complete work alone: 20 : Invalid - Identifier in python cannot contain any special character except underscore(_). Introducing Python Modules. Operators in Python 10. Boolean Algebra. >my list = [1,1.0+3j, “aperitivo”, true] # make a list containing four entities. List and String. For example : An identifier must start with a letter or underscore followed by any number of digits or/ and letters. Computer overview and its Basics 2. print("Subtraction: ",num1-num2) We can provide you with more exercises and model question papers to ease your practice for boards. Though a bit surprising at first, a moment’s consideration explains this. >my list = [ ] # make an Empty list (b) 123 Hello # * and / are of same precedence, hence, left to right order is followed By simply importing config, the entire global variable defined. >mytuple = [1, 2, 3, 4) # create a four element tuple. Question 1: Python Pandas II - Dataframes and Other Operations. The formula for the volume of a sphere: Also note that the numeric extensions and others define array-like structures with various characteristics as well. #Program to tell the user when they will turn 100 Years old For example we want a, b & c to share between modules. c) (6,6): True Free download of NCERT Solutions for Class 11 Computer Science 2020-21 Session solved by expert teachers from latest edition books and as per NCERT (CBSE) guidelines. r3 = 16 Here: These functions return a new object represting the converted value. All questions and answers from the NCERT Book of Class 11 Science Computer science Chapter 5 are provided here for you for free. A, B, C take x days, y days and z days respectively to do the job alone. #Computing sin value Algorithms and Flowcharts Unit 3 : Introduction to Python. print(dis <= 10) The array module also provides methods for creating arrays of fixed types with compact representations, but they are slower to index than lists. Perimeter = 4 × side length The string will be repeated only if the value is greater than zero, otherwise, it will return a blank. Write a program to swap two numbers without using a third variable. Conditional and Looping … Getting started with python || Type B || Sumita arora || Class 11 || Computer science || Information practices || Solution. #printing the 100th year #defining two variables 1.0 a) Runtime Error. A tuple is another sequence data type that is similar to the list. E = mc2 Check out the latest CBSE NCERT Class 11 Computer Science Syllabus.The syllabus is for the academic year 2020-21 session. Name some commands of Python. Energy = (mass/1000) * c ** 2 Class 10 Foundation of Information Technology, Thank a Customer For a Payment (ENGLISH LETTER WRITING), Thank a Business For Good Service, Low Prices, or Professional Courtesies (ENGLISH LETTER WRITING), Respond to a Complaint and Treat It As Valuable Feedback (ENGLISH LETTER WRITING), Respond Positively to Negative Feedback (ENGLISH LETTER WRITING), Reply Positively to a Suggestion (ENGLISH LETTER WRITING), Class 7 Hindi Textbook – हिंदी वसंत भाग-II, Class 7: An Alien Hand Supplementary Reader, Important Questions for Class 12 Computer Science (Python), NCERT Solutions for Class 12 Computer Science (C++), NCERT Solutions For Class 7 Honeycomb English, NCERT Solutions For Class 8 Honeydew – All Chapters, NCERT Solutions for Class 8 Social Science, NCERT Solutions For Class 8: It So Happened – All Chapters, ऋतुओं पर निबंध (Essay On Seasons In Hindi), त्योहारों पर निबंध (Essay On Festivals In Hindi), नेताओं पर निबन्ध (Essay On Leaders In Hindi), विज्ञान पर निबंध (Essay On Science In Hindi), स्वास्थ्य और खेल संबंधी निबंध (Essay On Health And Sports In Hindi). num1 = 2 + 9 * (36 - 8) /10  b) Enter the length of the ladder: 20 if n>0: Question 11: As Python compares string character to character and when different characters are found then their Unicode value is compared. Pylint is another tool that checks if a module satisfies a coding standard, and also make it possible to write plug-ins to add a custom feature. Question 13: How many types of literals are allowed in Python ?   print (num1, num2, num3). Let variables length and angle store the length of the ladder and the angle that it forms with the ground as it leans against the wall. b) (10,10): False Answer: Identifier is the user-defined name given to a part of a program like variable, object, functions etc. >mytuple[2] = 4 # Error – tuple can’t be modified. Example : Question 1: Operators in Python 10. (a) try e) len(Stationery) == 0, Add a pair of parentheses to each expression so that it evaluates to True. Lists are Python’s general purpose container, often used for collections of similar objects. #Printing the result for all arithmetic operations Answer: a) The sum of 20 and –10 is less than 12. b) Assign the average of values of variables length and breadth to a variable sum Program: