#programming

Img

Hello Everyone! DO YOU KNOW? 1. The first computer programmer was a female, named Ada Lovelace. 2. The first game was created in 1961. Fun facts are that it didn’t earn any money. 3. The first virus was created in 1983. 4. The first computer “bug” was identified in1947 as a dead moth. 5. The first computer was actually a loom called the Jacquard loom, an automated, mechanical loom, which didn’t use any electricity. #programmer #creatorshala #programming #creator #blogging #blogginginternship #day12

Read More
Img

Hello everyone, To all the python programmers out there, I have brought few tricks for you to apply in your codes Trick 1: reversing a string my_string = "SONAKSHI" rev_string = my_string[::-1] print(rev_string) OUTPUT: IHSKANOS Trick 2: Find occurrence of all the elements in the list. from collections import Counter my_list = [1,2,3,1,4,1,5,5] print(Counter(my_list)) OUTPUT: Counter({1: 3, 5: 2, 2: 1, 3: 1, 4: 1}) Trick3: We all know elements of list are mutable(changeable), right? But do you know python has provided us with a way to make it immutable. using frozenset() my_list = [1,2,3,4,5] my_list = frozenset(my_list) my_list[3]=7 print(my_list) OUTPUT: Traceback (most recent call last): File "", line 3, in TypeError: 'frozenset' object does not support item assignment #day2 #python #programming

Read More
Img

Hey web developer fam! Have you ever worked on sublime text. If not you must try it out and also, try hands on this amazing trick Just "!" and tab Taddaaaa! get the initials to start with. #sublimetext #firstpost #hellofam #howruall #technological #programming #html #css #javascript #day1

Read More