jagomart
digital resources
picture1_Python Fundamentals Pdf 187173 | 1  Python Ws


 173x       Filetype PDF       File size 0.25 MB       Source: isdoman.com


File: Python Fundamentals Pdf 187173 | 1 Python Ws
indian school darsait department of ict subject computer science topic python fundamentals work sheet 1 resource person sethu parvathi date name of the student class xi a roll number find ...

icon picture PDF Filetype PDF | Posted on 02 Feb 2023 | 2 years ago
Partial capture of text on file.
         
                                       INDIAN SCHOOL DARSAIT 
                                           DEPARTMENT OF ICT 
         
        Subject: Computer Science               Topic: Python Fundamentals Work Sheet: #1 
        Resource Person: Sethu Parvathi                                                  Date: __________ 
        Name of the Student :______________________                   Class: XI A        Roll Number : ___ 
                                                                                          
        Find the out of the following code: 
         1.   print (“Getting started with Python!!")                                                          
              print ('Hello World !') 
               
         2    (i)print(5)                                                                                      
              (ii)a=4  
              print(a) 
         3.   print (100+5)                                                                                    
              print ("100 + 50 = ", 100+50) 
         3.   a = 75.5                                                                                         
              b = 24.5 
              print (a + b) 
              print("SUM OF" , a , "AND", b , "IS", a+b) 
         4.   a, b, c = 10                                                                                     
              x , y = 5 , 10 
              print (x ,  y) 
              print(a + b + c) 
         5.   str1="Python"                                                                                    
              print(str1) 
         6.   print(“Escape Sequence”)                                                                         
              S1=”Hello\n World”     #New line character 
              print(S1) 
         7.   S2=”Hello\t World”   #Horizontal tab                                                             
              print(S1, S2) 
         8.   X=” D:\\Documents\\Python Programs”    #Backslash                                                
              print(X) 
         9.   print(“Single Quote and Double Quote”)                                                           
              print(“Python was developed by \”Guido Van Rossum\” in \’Feb 1991\’ ….”) 
               ISD/ICT/CS/XI/2019-20                                                               Page 1 of 2 
                
                                                                       
                                       10.  print(“String Type in Python”)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
                                                                      Print(“Single-line String and Multiline String”) 
                                                                      Print(“Hello\ 
                                                                               World”) 
                                       11.  text2="Hello\                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                      World\ 
                                                                      Multiline string using backslash" 
                                                                      print(text2) 
                                       12.  str1=‘ ‘ ‘ Hello world.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                               Multiline string using triple apostrophe ’ ’ ’  
                                                                      Print(str1) 
                                       13.  str2=“ “ “Hello world.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
                                                                               Multiline string using triple quotes” ” ” 
                                                                      Print(str2) 
                                       14.  Print(“Size of a string”)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                      S=”Python” 
                                                                      Print(len(S)) 
                                       15.  S1=’abcd’                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                      Print(len(S1)) 
                                       16.  Find the size of the given string using len( ) function.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
                                                                                              i.                                    ‘\\’                                                                                                                                                                                                          vi.                                   ‘\t’ 
                                                                                              ii.                                   ‘abc’                                                                                                                                                                                                         vii.                                  “\n” 
                                                                                              iii.                                  “\ab”                                                                                                                                                                                                         viii.                                 ‘\”’ 
                                                                                              iv.                                   “seena\’s  pen”                                                                                                                                                                                               ix.                                   “Child’s” 
                                                                                              v.                                    “Anu’s”                                                                                                                                                                                                       x.                                    “Reema\’s" 
                                                                       
                                       17.  Str1=‘ ‘ ‘ ab                                                                                                                                                                                                                                                            19.  S1=”uvw\                                                                                                                                                                                                                                                         
                                                                           bc                                                                                                                                                                                                                                                                             xyx” 
                                                                           cd ‘ ‘ ‘                                                                                                                                                                                                                                                                 print(len(S1)) 
                                                                      print(len(Str1)) 
                                       18.  Str2=‘ ‘ ‘ a\                                                                                                                                                                                                                                                            20.  S1=”uvw                                                                                                                                                                                                                                                          
                                                                           b\                                                                                                                                                                                                                                                                             xyx” 
                                                                           c ‘ ‘ ‘                                                                                                                                                                                                                                                                  print(len(S1)) 
                                                                      print(len(Str2))                                                                                                                                                                                                                                                               
                                                                             
                                                                            ISD/ICT/CS/XI/2019-20                                                                                                                                                                                                                                                                                                                                                                                                                             Page 2 of 2 
                                                                             
The words contained in this file might help you see if this file matches what you are looking for:

...Indian school darsait department of ict subject computer science topic python fundamentals work sheet resource person sethu parvathi date name the student class xi a roll number find out following code print getting started with hello world i ii b sum and is c x y str escape sequence s n new line character t horizontal tab d documents programs backslash single quote double was developed by guido van rossum in feb isd cs page string type multiline text using triple apostrophe quotes size len abcd given function vi abc vii iii ab viii iv seena pen ix child v anu reema...

no reviews yet
Please Login to review.