May 2020 - Brain Mentors Skip to content

Protected: Getting Started with Adobe XD

There is no excerpt because this is a protected post.

Python Data Structures – Dictionary and Sets

Dictionary A dictionary is a collection which is unordered, mutable. In Python, Dictionary is the collections of key: value pair which are enclosed inside {}(curly brackets). Methods in Dictionary items() : Returns a list containing a tuple for each key value pair. keys() : Returns a list containing the all the keys existing in the dictionary. values() : Returns a list containing the values in the dictionary copy() : Returns a copy of the dictionary. popitem() : Removes the last key-value pair from the dictionary. pop() : Removes the value which is bind to the specific key. clear() : Removes All the key:value pair of the dictionary. Insertion Operation in dictionary Dropping the dictionary This is used to delete the entire dictionary from the memory. Example on Dictionary Lets suppose there are nth students in the class .So Dictionary for that will look like: StudentDB = {"rollNo":[101,102,103], "Name":["Ramesh","Suresh","Raju"], "Marks":{"physics":[90,94,98], "chemistry":[90,91,99],

Python Data Structures – Lists and Tuples

List In Python , the list is a data structure which contains an ordered sequence of elements. List is mutable (Which means we can create, edit or delete the items of the list).In List, You can store all types( number, string, boolean ) of data. inside list. As like String can be written using single/double inverted Quotes, List is written using [] list1 = [ ” B ” , ” R ” , ” A ” , ” I ” , ” N ” ] Indexing in List Index is the position which can be used to get a specific item from the list.Here, Indexing in List starts from 0, then 1 , then 2 , then 3 , then 4 and so on. and if we start from last index of list, then indexing starts from -1, then -2 , then -3 ….so on. Using Index , we can

CSS – Positions in UI Development

CSS-Positions are used to sets that how an element of an HTML is positioned in a document. Basically, Position is a property of CSS that helps you to position your HTML elements. The CSS position property is changeable and robust/strong. Because it allows you to alter or set an HTML element’s position that whatever position you like. There are five different types of CSS-Positions are as follows: Static Fixed Absolute Relative Sticky And also there are 4 different properties used along with all CSS-Positions are as follows: Top Left Bottom Right These 4 above mentioned properties only use when we first apply position property to any HTML elements. Position: Static The static position is a default position for every tags/elements of an HTML. If not specified any position property to any tag/element then by default the position is static. Example: Simple web page is an example of position static. Position:

Sign Up and Start Learning