Day: March 9, 2021

Write a program to predict Bank Customer Churn using Random Forest with Monte Carlo Cross Validation in Python

(End-to-End Jupyter Notebook for Citizen Data Scientist & Business Analyst) Write a program to predict Bank Customer Churn using Random Forest with Monte Carlo Cross Validation in Python. In this end-to-end applied machine learning and data science notebook, the reader will learn: How to predict Bank Customer Churn using Random Forest with Monte Carlo Cross …

Write a program to predict Bank Customer Churn using Random Forest with Grid Search Cross Validation in Python

(End-to-End Jupyter Notebook for Citizen Data Scientist & Business Analyst) Write a program to predict Bank Customer Churn using Random Forest with Grid Search Cross Validation in Python. In this end-to-end applied machine learning and data science notebook, the reader will learn: How to predict Bank Customer Churn using Random Forest with Grid Search Cross …

Python Example – Write a Python program to find numbers between 100 and 400 (both included) where each digit of a number is an even number

(Python Example for Citizen Data Scientist & Business Analyst)   Write a Python program to find numbers between 100 and 400 (both included) where each digit of a number is an even number. The numbers obtained should be printed in a comma-separated sequence.   Sample Solution: Python Code: items = [] for i in range(100, …

Python Example – Write a Python program to check the validity of a password (input from users)

(Python Example for Citizen Data Scientist & Business Analyst)   Write a Python program to check the validity of a password (input from users). Validation : At least 1 letter between [a-z] and 1 letter between [A-Z]. At least 1 number between [0-9]. At least 1 character from [$#@]. Minimum length 6 characters. Maximum length …

Python Example – Write a Python program that accepts a string and calculate the number of digits and letters

(Python Example for Citizen Data Scientist & Business Analyst)   Write a Python program that accepts a string and calculate the number of digits and letters.   Sample Solution: Python Code: s = input(“Input a string”) d=l=0 for c in s: if c.isdigit(): d=d+1 elif c.isalpha(): l=l+1 else: pass print(“Letters”, l) print(“Digits”, d) Sample Output: …

Python Example – Write a Python program to count the number of even and odd numbers from a series of numbers

(Python Example for Citizen Data Scientist & Business Analyst)   Write a Python program to count the number of even and odd numbers from a series of numbers.   Sample Solution: Python Code: numbers = (1, 2, 3, 4, 5, 6, 7, 8, 9) # Declaring the tuple count_odd = 0 count_even = 0 for …

Python Example – Write a Python program that accepts a word from the user and reverse it

(Python Example for Citizen Data Scientist & Business Analyst)   Write a Python program that accepts a word from the user and reverse it.   Sample Solution: Python Code: word = input(“Input a word to reverse: “) for char in range(len(word) – 1, -1, -1): print(word[char], end=””) print(“n”) Sample Output: Input a word to reverse: …