Latest web development tutorials

Python includes exercises 74

Python 100 Li Python 100 Li

Title: Connecting two lists.

Program Analysis: None.

Source Code:

#!/usr/bin/python
# -*- coding: UTF-8 -*-

if __name__ == '__main__':
    arr1 = (3,12,8,9,11)
    ptr = list(arr1)
    print ptr
    ptr.sort()
    print ptr
[3, 12, 8, 9, 11]
[3, 8, 9, 11, 12]

Python 100 Li Python 100 Li