import sys

name = sys.argv[1]
age = sys.argv[2]

# print("How old are you?"))#Comment out to run and vice versa
# age = int(input())

print(name)
print(age) #Prints name and age if initiated with both name and age


list_a = list(range(0,5))#Comment out to run and vice versa
print(list_a)#Displays list from 0 to 5
#
#
# ##########################Using range#################################


for i in range(0,7):
    print("I would love " + str(i) + " cookies")

##########################For modulus loop##############################

numbers = [1, 2, 3, 4, 5]
for i in numbers:  #Checks out if it is divisible by 2
    if i % 2 == 0:
        print(i)  #Prints out numbers divisible by 2 i.e 2 and 4
########################### Printing in range############################

'''
in a team of members 20, some numbers are taken
and want to display the numbers that are not taken
so others don't pick the picked numbers
'''

# taken numbers
numTaken = [3,5,7,11,13] #Are numbers taken

print("Available numbers")#Directive to print avaliable numbers

# loop
for i in range(1,21):#range defines it from 1 to 21
    if i in numTaken:#Condition confirmation
        continue
    print(i)#Directive to print the numbers

########################## Using  extend()method ############################

list_a = ["a","e","i","o","u"]
list_b = [1,2,3,4,5,6,7,8,9,10]

# Joining list_b to list_a

list_a.extend(list_b)
print(list_a) # this will print ["a","b","c","d",1,2,3,4,5,6]
print(list_b) # this will print [1,2,3,4,5,6]
#This adds new values to list_a. Notice that list_b remains unchanged.

#############################Using Append ######################################
list_a = ["a","b","c","d"]

print(list_a)  # ["a","b","c","d"]

list_a.append("e")

print(list_a) # ["a","b","c","d","e"]
#Add e to the final array while not affecting the original array

#################################Sorted order##################################

ist_a = [1,3,4,8,5,7,6,2]
list_a.sort()

print(list_a) # [1, 2, 3, 4, 5, 6, 7, 8]
#Prints in sorted order
###############################Reverse Order###################################
list_a = ["a","b","c","d"]
list_a.reverse()

print(list_a) # ['d', 'c', 'b', 'a']
#Prints in reverse
