How to make an attractive animation with CSS? So, here I have attached the code which we'll use in this tutorial. CSS Code: @keyframes shake { 10%, 90% { transform: translate3d(-1px, 0, 0); } 20%, 80% { transform: translate3d(2px, 0, 0); } 30%, 50%, 70% { transform: translate3d(-4px, 0, 0); } 40%, 60% { transform: translate3d(4px, 0, 0); } } @keyframes bounce { 10%, 90% { transform: translate3d(0, 5px, 0); } 20%, 80% { transform: translate3d(0, 3px, 0); } 30%, 50%, 70% { transform: translate3d(0, 7px, 0); } 40%, 60% { transform: translate3d(0, 2px, 0); } } @keyframes circleanimation { 0%{ transform: sca...
How to read CSV file into Python Programming? So, Here I have given Python Code and CSV file which I was used in Tutorial. Python Code: import csv with open("data.txt", "r") as dataFile: dataFileReader = csv.reader(dataFile) dataList = [] for row in dataFileReader: if len (row) != 0: dataList = dataList + [row] dataFile.close() print(dataList) CSV File : ABC, XYZ, 1, 2, 3 PQR, WXY, 4, 5, 6 DEF, JKL, 7, 8, 9 This Python code is made for a view and imports the comma separated files in python app. Also with this code user can only read this code in the app but They can't write in the file. import csv Now, Let's start with the first line of the program. So, in this line, i had imported the CSV library. and because of that, we can use functions like CSV file open, close, edit, read, write and etc. with open("data.txt", "r") as dataFile: This line has the function called 'open' which will be written ...