Computer Science, asked by shwetashekhawat080, 3 months ago

if u know any questions answers plz reply.
.its urgent ​

Attachments:

Answers

Answered by allysia
1

Answer:

1. String

2. Dictionary

3. False

4. 'abcd'

5. T(3)="March"

6.{1:'sunday', 2:'monday',3:'tuesday', 4:'wednesday'}

7. Datatypes whose values at the same memory location can be changed. Eg. Lists.

8. a)

  • 10
  • 15
  • 2

b)

  • 21
  • 30
  • 10
  • 15
  • 2

9.

string="WELCOME"

for S in range (0,8):

       if str[S]=="E":

                print (str[S])

       else ;

                print "No"

corrected:

string="WELCOME"

for S in range (0,8):

       if string[S]=="E":

                print (string[S])

       else:

                print ("No")

10.max(L)

11. list() function returns the array entered as a list.

12. Tuples are the immutable arrays.

13.

a="KV1AJMER"

new=""

for i in range(len(a)-1,-1,-1):

      new+= a[i]

print (i)

14. insert(): Inserts a value at a given index.

append(): adds a value at the end of a list.

extend() :Attaches two lists.

15. Dictionary is a mapping datatype used to store date in terms of key values pairs and is mutable.

16. Packing in tuples is the process of storing the values in a tuple and then assigning those values other variables though tuples.

And unpacking is the means of extracting that data back.

17.

a) hellohellohello

b)kv1Ajmer

c) JAIPUR

d)I*N*D*I*A

e) 2

18.

same as 17.

19.

a) d["f"]=80

b) d["c"]=35

c) del d['e']

Explanation:

3) The ASCII co de value for "a" is greater than "A".

5) You can't change values in tuples.

Similar questions