Posts

Showing posts from June, 2020

Learning Day-06 & 07

Image
** Next Hands-on Session will be on 04-July-2020 Stay Tuned.... Let's Learn Python # Day-06 & 07 Deep Dive into Python Lists Python Collections (Arrays) There are four collection data types in the Python programming language: List  is a collection which is ordered and changeable. Allows duplicate members. Tuple  is a collection which is ordered and unchangeable. Allows duplicate members. Set  is a collection which is unordered and unindexed. No duplicate members. Dictionary  is a collection which is unordered, changeable and indexed. No duplicate members. List A list is a collection which is ordered and changeable. In Python lists are written with square brackets. List Methods Python has a set of built-in methods that you can use on lists. Method Description append() Adds an element at the end of the list clear() Removes all the elements from the list copy() Returns a copy of the list count() Returns the number of elements with the specified value extend() Ad...

Learning Day-08 ( 01-July-2020 )

Image
** Next Hands-on Session will be on 04-July-2020 Stay Tuned.... Let's Learn Python # Day-08 Deep Dive into Dictionaries -01 Dictionary: A dictionary is a collection which is unordered, changeable and indexed. In Python dictionaries are written with curly brackets, and they have keys and values. # Below are some of the Operations @ Dictionaries. student={"name": "abc", "rollnumber":"1234", "branch":"cse"} print(student) print(type(student)) Output:  {'name': 'abc', 'rollnumber': '1234', 'branch': 'cse'} <class 'dict'> # To find the Length of the Dictionary: print(len(student)) Output: 3 #Finding the total items in the Dictionary: student.items() print(student) OUtput: {'name': 'abc', 'rollnumber': '1234', 'branch': 'cse'} #keys d1=student.keys() print(d1) Output: dict_keys(['name', 'rollnumber',...

Python Basics Quiz-Results

** Next Python-Quiz will be on 04-July Stay Tuned.... Quiz-Results NAME COLLEGE MARKS Sri Rajya Lakshmi Vure IIIT,Hyderabad 90 / 100 MOHAMED ALIM S VELAMMAL COLLEGE OF ENGINEERING AND TECHNOLOGY 90 / 100 srirama nagabhushan Sri mittapalli college of engineering 90 / 100 Javvaji Divya Reddy sri mittapalli institute of technology for women's 60F / 100 Nandam Lavanya Sri chundi ranganayakulu engineering college 60 / 100 Thota Suthra Rani Sri mittapalli institute of technology for women 50 / 100 Syed Fathima Abrar Sri mittapalli institute of technology 70 / 100 SUDHARANI TELAGATHOTI Sri Mittapalli Institute of technology for women's 70 / 100 KOTA JAHNAVI Sri mittapalli college of engineering 70 / 100 METTUPALLI POOJITHA Sri mittapalli college of engineering 70 / 100 Kanike.Kiranmaiee Eswar College of engineering 80 / 100 Anusha somala Sri mittapalli institute of technology for women 60 / 100 M.sai gopi krishna Vvit 90 / 100 Thondepu Swathi Sri Chundi Ranganayakulu Engineer...

Learning Day-05

Image
** Next Hands-on Session will be on 27-June-2020 Stay Tuned.... Let's Learn Python # Day-04 python collection examples   list/tuple/dictionary. # list a = []  type(a) # here a is empty list object # creating list with values x = [10,20,30,40,50,60] print(x)   #how to access list elements.  # using index numbers and slicing.  x[0] # first element # check below output x[2] x[-1] x[-2] x[1:4] x[3:] x[-3:] x[:3] # modifying list values. x[2] = 300 x[-2] =  5 x # appending values to list x.append(500) print(x) x.append(450) # merging list objects a = [1,2,3] b =  [9,10,11,5] a+b # appending multiple values to a list x = x + [100,200,700] or x += [100,200,700] a = [10,20,30,40] a += [9,7,0] print(a) # aggregate functions on list object len(x) sum(x) max(x) min(x) avg = sum(x)/len(x) # transformation : perform some action on each element of a list. a = [10,20,30,40,50] # add 100 to each element.(transformation. ) #way1 b = [] for  i in a: ...

Learning Day-04

Image
** Next Hands-on Session will be on 27-June-2020 Stay Tuned.... Let's Learn Python # Day-04 Built-in Data types: python supports dynamic data typing. In Programming, data type is an Important Concept. Variables can Store of different types, and different types can do different things. -> based on assigned values,automatically data type will be constructed to a variable.  a=10 #a is int b=20.45 #b is float c="hello" #c is string two types .  1. simple types.  2. complex types (collection types) 1. simple: ------------------------ int float string --> str boolean -->bool name--> string age --> int income   --> float areYouMarried --> bool ---------------------- name = "Sreeram" or name = 'Sreeram' ------------------------------- name = "xyz" <var> = input(<prompting text>) name = input("Name please ") #string age = int(input("Age ")) income =  float( input("Enter monthly text...