COMPUTER PRACTICAL CLASS VII

 Q1.  Write the html code and find the output 

Q2. Write the HTML CODE using Ordered List:-

1. English

2. Mathematics

3. Science 


Q3C  Write the output of the following code snippets.

1. >>> number_of_pages=200

>>>print(number_of_pages)


2. Given a list

lst=["Monday","Tuesday","Wednesday","Thursday",

"Friday","Saturday"]

a. What statements will you write to print the elements

stored at even indices?


b. Write a statement to replace incorrect spelling with the correct spelling of Friday.



c. Write a statement to print the number of elements in the list.


d. Write a statement to print the first element of this list.



3. fruits=["apple,"mango","orange"]

numbers=(5,4,3)

alphabets={'a':'apple','b':'ball','c':'cat'}

print(fruits)

print(numbers)

print(alphabets['b'])


     4. >>>list1=[1,2,3,4]
        >>>list2=['i','love','numbers']
        >>>print(list1+list2)
    
      5. num=2
           if num>=0:
              print("Number is positive or zero.")
           else:
              print("Negative number")
         
        

Comments

Popular posts from this blog

CLASS 8 DATA TYPES IN PYTHON

PYTHON PRACTICE INTERACTIVE MODE (COMMAND LINE)