Skip to content

Commit

Permalink
Why am I not giving my best to learn python?
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirax22 committed Aug 1, 2022
1 parent dae9668 commit 2e569ca
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions main6(revision).py
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,29 @@
# list1 = [[1,2,3],[4,5,6],[7,8,9]]
# for sublist in list1:
# for i in sublist:
# print(i)
# print(i)
# print(type(list1))

# list2 = [
# [1,2,3,],[5,6,7],[8,9,0]
# ]
# list2.insert([1],[1],4)
# print(list2)

"""
list3 = [1,2,3,4,5,7,8]
list3.clear()
print(list3)
print("""

# Dictionary
# A dictionary is a collection which is unordered, changeble and indexed. In python dictionaries are written within curly brackets, and they have keys and values. Means the dictionary contains two things first is the key and second is value.
"""
dict1 = {'Kiran': "Rai", 'Dipika': "Tamang",}
for x in dict1.values():
print(x)
"""
# change value of dictionary

dict1 = {'Kiran': "Rai", 'Dipika': "Tamang",}
dict1['Dipika'] = 'Rai'
print(dict1)

2 comments on commit 2e569ca

@Kirax22
Copy link
Owner Author

@Kirax22 Kirax22 commented on 2e569ca Aug 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need to push yourself hard enough to crack your bone....

@Kirax22
Copy link
Owner Author

@Kirax22 Kirax22 commented on 2e569ca Aug 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thats all nothing can be done except accepting the situation right now...

Please sign in to comment.