Skip to content

feb21.py #6

@kabeeru81

Description

@kabeeru81

#A List of Whole Numbers
whole_numbers=[1,2,3,4,5,6,7,8,9]

#A list containing name of student
student=['kabir','usman','mohd','kasandrah','amrah']

#A list of decimal Numbers
decimal_numbers=[1.2,1.3,1.4,1.5,1.6,1.7]

#A list of whole numbers and decimal numbers
number1=[1,2,3,4,5,]
number2=[1.2,1.3,1.4,1.5,1.6]

#A list containing name of students, whole numbers and decimal numbers
name=['kabir','mohd','usman',1,2,0.1,1.2]

#A list containing numbers and other lists
numbers=[12345,'kabir','ayman','usman']

#A list containing decimal numbers and other lists
decimal=[0.1,1.3,3.2,'kasandrah','mohd']

#A list containing names of fruits and other lists
fruit=[{'name':'mango'},{'color':'yellow'},{'heigh':0.75}]

#A list containing numbers, names and other lists
number=[{'num':12345},{'name':'kabir'},{'sport':'football'}]

#Create 2 lists and join then together on a third list
list1=['kasandrah','usman']
list2=['mohd','amrah']
list3= list1 + list2

#Create a list containing at least three items and get each item individually
name=['kabir','mohd','usman']
name[0]
name[1]
name[2]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions