Create function to find if a given year is leap year or not. Provide year as parameter of the function. def check_leap_year(year): is_leap_year=False if year%4==0: is_leap_year=True try: check_leap_year(2018) print(is_leap_year) except: print("Your code raised an error") Create function if a list of years given then find which year...
Conditional statement is most sought after situation in programming. There are many rules and operators get used while using IF THEN ELSE in python. These statement get used when programmer some output based on certain condition or want to perform any function or activity upon any conditional event. Before...
Index Function in Python Index function helps to find the position of specific string in a sentence. In many cases in data, instead of getting complete text value, user want to find and extract specific text from a sentence. In below examples, user want to find the City and...
You want to print “Hello Mr X ” wherein you have created variable name as “Mr X”. name= "Mr X" print("Hello, %s!" % name) Another example, print ” Mr X is 25 years old” where you have to create extra variable name as Age name= "Mr X" age=25 print("%s...
Python Tutorial 1-Basic Python Syntax and Commands Comment the line # program to create variable "user" # Short command in spyder, press CTRL+1 to comment the line Syntax to create new Variable “user” user ="Amit" # print to check the output of new variable print(user) Variables...
R programming language is free software for graphics and statistical computing language disused by data miners and statisticians for the development of statistical software. It includes a huge variety of graphical and statistical techniques, time series analysis, clustering, linear and non-linear modeling and classification. It is used for solving...
Proficiency in R programming Language is highly in demand by the companies as R is useful in statistics, data mining and analytics. It is highly recommended by the data scientists in comparison to other programming languages. Google uses R to calculate Rate of interest, Twitter uses R to measure...
With the data scientist taking important roles on the terms of research and experimentation, the scope of data science is surely surging at unexpected level. Through data science these data scientists interpret the patterns for channeling out future growth and for taking effective steps to achieve success. It is...
Data Analytics is the process of evaluation of data through analytical and logical reasoning for examination of each component of data given. The data analyst converts the collected data into a readable format suitable for analyzing it through analyzing tools After rigorous analysis a data analyst reaches the conclusion...