Friday, January 23, 2015

Activity 1.3.6

Conclusion

1. Consider a string, tuple, and list of characters.
In []: a = 'acbde'
In []: b = ('a', 'b', 'c', 'd', 'e')
In []: c = ['a', 'b', 'c', 'd', 'e']
The values of a[3], b[3], and c[3] are all the same. In what ways are a, b, and c different?
    
a is all letters,  b has parenthesis, and c has hard brackets.
2.  Why do computer programming languages almost always have a variety of variable types?    
to make it easier to differentiate in between things.

3.  Why can't everything be represented with an integer?

some things need to be more specific.

No comments:

Post a Comment