This book contains JAVASCRIPT BASICS AND PYTHON coding exercises for beginners. It's useful Job interviews and college examinations. This book only for absolute beginners.
TABLE OF CONTENT Introduction to Javascript Hello world program Variables Statements comments Types operators Arithmetic Operators Increment/ ++, -- operators Bitwise operators Logical operators Assignment operators Compound Assignment operator Ternary operator Working with boolean values Decision if, if-then if-else-if-else ladder Decision making using switch statement loops do-while loop for loop break statement continue statement break in label form for in loop for-of loop get the type of variable Working with strings Nested functions Array Introduction to Classes Define class using class expressions PYTHON String – Exercises Reverse a string Remove a newline in Python Find the common values Python Data List – Exercises Sum all the items in a list Get the largest number from a list Remove duplicates from a list Python Data Dictionary – Exercises Add a key to a dictionary Iterate over dictionaries using for loops Merge two Python dictionaries Multiply all the items in a dictionary Remove a key from a dictionary Get a dictionary from an object's fields Combine two dictionary adding values for common keys Find the highest 3 values PYTHON BASICS – EXERCISES Display current date and time Print the calendar Computes the value of n+nn+nnn Calculate number of days volume of a sphere in Python Compute the area of Triangle Compute the GCD CALCULATE THE LCM Convert feet and inches to centimeters Convert time – seconds Convert seconds to day Program to solve Future value of amount Check whether a file exists Convert the distance Sum all the items Multiplies all the items Get the largest number Get the smallest number Remove duplicates Clone or copy a list Difference between the two lists Generate all permutations Find the second smallest Get unique values Get the frequency of the elements Generate all sublists Find common items Create a list