Using strings:
1) Declare a string variable called x and assign it the value from a users input.
    then print "Hello." and the value of x.

name = input("Enter a name: ")
print("hello", name)

------------------------------------------------------------------------------------
2) Write a Python program to calculate and print the length of a string.

x = "Good Morning how are you today?"
print("string contains", len(x) , "charactors")


------------------------------------------------------------------------------------
3) Write a Python program to count the number of characters
    (character frequency) in a string

table = ("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z")
count = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]

string = input()
strlen = len(string)
print(string)
print("length =", strlen, "\n")

for y in range(len(table)):

  for x in range (strlen):
      if string[x] == table[y]:
          count[y] = count[y] +1

  print(table[y],"count =", count[y])



------------------------------------------------------------------------------------

4) Write a Python program which accepts the user's first and last name 
    and print them in reverse order with a space between them. 

first = input("Enter first name: ")
last = input("Enter last name: ")
print(last, first)


------------------------------------------------------------------------------------
5) Write a Python program to sum all the items in a list

c = [5,2,10,48,32,16,49,10,11,32,64,55,34,45,41,23,26,27,72,18]
x = 0

for i in range(len(c)):
    x = x + c[i]

print(x)


------------------------------------------------------------------------------------
6) Write a Python program to get the largest number from a list

c = [5,2,10,48,32,16,49,10,11,32,64,55,34,45,41,23,26,27,72,18]
x = c[0]

for i in range(len(c)):
    if x < c[i]:
        x = c[i]
        

print(x)



------------------------------------------------------------------------------------
7) Write a Python program to get the smallest number from a list.

c = [5,2,10,48,32,16,49,10,11,32,64,55,34,45,41,23,26,27,72,18]
x = c[0]

for i in range(len(c)):
    if x > c[i]:
        x = c[i]
        

print(x)



------------------------------------------------------------------------------------
8) Write a Python program which accepts a sequence of comma-separated
    numbers from user and generate a list and a tuple with those numbers. 

value = input("Enter comma-separated numbers:")
list = value.split(",")
tuple = tuple(list)
print('List : ',list)
print('Tuple : ',tuple)


extra credit:
------------------------------------------------------------------------------------
9) Write a Python program to display the first and last colors from the
    following list.  color_list = ["Red","Green","White" ,"Black"]

color_list = ["Red","Green","White" ,"Black"]

print(color_list[0])
print(color_list[len(color_list) -1])


------------------------------------------------------------------------------------
10) Write a Python program that accepts an integer (n) and computes the value of 
     n *2, n *4, n *10.

n = int(input("Enter a number:"))
print(n,"times 2 =", n *2)
print(n,"times 4 =",  n *4)
print(n,"times 10 =",  n *10)


------------------------------------------------------------------------------------
11) Write a Python program to create the multiplication table (from 1 to 10)
     of a number.

n = int(input("Enter a number:"))
for i in range(1,11):
    print(n,"times", i, "=", n *i)



