Posts

Showing posts from June, 2020

3# How to combine two lists in Python || directories || tuple || changea...

Image

2# Learn Python - Full Course for Beginners [Tutorial] || List || get element || sort list || add

a = [1,2,3,4,5,6,7,8] a [len(a)-1] a[-1] list =[{'name': 'f/name','age':40},{'name': 'f/name','age':42},{'name': 'f/name','age':10},{'name': 'f/name','age':15},] list.sort(key=lambda list: list.get("age")) b=[3,44,5,6,4,6,5] b.insert(0,6) print(b) b.remove(5) b type(b) a.remove(4)

1# Learn Python - Full Course for Beginners [Tutorial] || Phyton Basic Oprations

print(True + False); print(True or False); print(5//2); print(5%2); print(4**4); print(5+4.5); #python items=[] if len(items) == 0:     print("empty list") else:     print("It is not empty list") if items==[]:     print("list is empty") copy a list old_list=["hello","world"] print(old_list[:]) print(old_list) new_list = old_list[:] print(new_list) print(old_list) old_list[1] import copy new_list1 = copy.copy(old_list) print(new_list1) import copy new_list1 = copy.copy(old_list) print(new_list1)

2# Learn Python - Full Course for Beginners [Tutorial] || List || get e...

Image

1# Learn Python - Full Course for Beginners [Tutorial] || Phyton Basic O...

Image

How to use LMS of KIU.edu.Pk in Urdu Language| By Tech

Image

Javafx || upcomming javafx projects with source code || Netbeans IDE

Image