1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Mar 13 14:25:56 2018 @author: beast Note this program is for holding int value to list only """ def addmatrix(): matrixA=list() # intialize matrix as empty list matrixB=list() #intialize matrix as empty matrixS=list() #store the sum try: row,col=[int(j) for j in (input("Enter the row and col ").split())] print(row,col) inp="" except ValueError: print("Please Enter row and col seperated by space eg: 2 2") inmatrix() for i in range(row): for j in range(col): inp+=((input("Enter the number for matrix A[%d][%d}--->"%(i,j)))+",") try: lst=[int(a) for a in inp.split(",") if a!=""]#delete int for making it to hold any data # create a list using input row string matrixA.append(lst) #add the row wise data inp="" #after eacch row input reset inp to get next input except ValueError: print("please Enter Integer Only as list input\n\a------ Restarting ---\n") addmatrix() # """now matrix B input ----""" print("\n____________________\n") for k in range(row): for l in range(col): inp+=(input("Enter the number for matrix B[%d][%d}--->"%(k,l))+",") try: lst=[int(a) for a in inp.split(",") if a!=""]#delete int for making it to hold any data # create a list using input row string matrixB.append(lst) #add the row wise data inp="" #after eacch row input reset inp to get next input except ValueError: print("please Enter Integer Only as list input\n\a------ Restarting ---\n") addmatrix() print("\n------------\nmatrix A-->\n",matrixA) print("\nmatrix B-->\n",matrixB) for m in range(row): temp=list() for n in range(col): temp.append(matrixA[m][n]+matrixB[m][n]) matrixS.append(temp) # add the result rowwise as a list print("\n-----------result----------\n") # print(matrixS) return matrixS if __name__=="__main__": try: print(addmatrix()) except Exception: print("please Give Correct Input\n") addmatrix() |
Definition of 3G: 3G is the third generation of wireless technologies. It comes with enhancements over previous wireless technologies, like high-speed transmission, advanced multimedia access and global roaming. 3G is mostly used with mobile phones and handsets as a means to connect the phone to the Internet or other IP networks in order to make voice and video calls, to download and upload data and to surf the net. How is 3G Better?: 3G has the following enhancements over 2.5G and previous networks: Several times higher data speed; Enhanced audio and video streaming; Video-conferencing support; Web and WAP browsing at higher speeds; IPTV (TV through the Internet) support. 3G Technical Specifications: The transfer rate for 3G networks is between 128 and 144 kbps (kilobits per second) for devices that are moving fast and 384 kbps for slow ones(like for pedestrians). For fixed wireless LANs, the speed goes beyond 2 Mbps. 3G is a set of technologies and stand
Comments
Post a Comment
share your thoughts ....