Computer Science, asked by ajay7717, 10 months ago

Are the following two assignments same? why/ why not? (1) T1=3,4,5 ,T2 =(3,4,5)​

Answers

Answered by Anonymous
0

yes , same

as..T1=3, 4, 5

and T2=3,4,5

Answered by SteffiPaul
3

The following two assignments T1=3,4,5 ,T2 =(3,4,5)​ are different.

The reason is -

  • T1 is the sequence of numbers 3,4,5 in which the order does not matter.
  • T2 on the other hand, is the set (3,4,5) in which the order of arrangement of numbers matters.

Definition of set:

A set is a well-defined collection of distinct objects, considered as an object in its own right.

  • Let us consider three elements, 1, 2 and 3.
  • They are individual objects when considered seperately.
  • But when written as a single unit, (1, 2, 3) they represent one unit.
Similar questions