Skip to main content

Featured post

How to Show Data science Project in Resume

In any project, the Data analyst role is to deal with data. The data for data science projects come from multiple sources. This post will explain how to put in data science project in Resume.
Data Science project for Resume The first step for an interview of any project is you need Resume. You need to tell clearly about your resume.

In interviews, you will be asked questions about your project. So the second step is you need to be in a position explain about project.

The third point is you need to explain the roles you performed in your data science project. If you mention the roles correctly, then, you will have 100% chance to shortlist your resume. Based on your experience your resume can be 1 page or 2 pages.
How to show Technologies used in Data science projects In interviews, again they will be asked how you used different tools to complete your data science project.

So, you need to be in a position to explain about how you used different options present in the tools. Sometime…

Python Improved Logic Easy Way to Calculate Factorial

I am practicing Python programming. In this post, I have explained logic to calculate the factorial using a function. This function you can call it a user-defined function. The name of the function is factorial.py.

In real-time, you can write a program in a file and run it in python console. The main task of a developer is to create functions for the reusable code. They call these functions whenever they need.
Factorial calculation program for supplied input value.
 Python logic easy way to calculate factorial using user defined function. Useful for your project.

Factorial Logic in Python

I have completed this logic in 3 steps.
  1. Write factorial.py
  2. Import
  3. Execute it

Write Factorial.py 

Here you need to define a function. Use 2 for loops, and write your logic. This is done on LInux operating system. You can also try on Linux.

factorial.py
After, ESC command
Use, :wq to come out of the module.

Import Factorial.py

Go to Python console, using 'python' command. Use import factorial.py command.

import function

Execute Factorial.py 

>>> factorial.fact(5)
It will show the result of factorial.
factorial result

Bottom line

 Factorial of 5 = 1x2x3x4x5= 120

References

Comments

Most Viewed

Hyperledger Fabric Real Interview Questions Read Today

I am practicing Hyperledger. This is one of the top listed blockchains. This architecture follows R3 Corda specifications. Sharing the interview questions with you that I have prepared for my interview.

Though Ethereum leads in the real-time applications. The latest Hyperledger version is now ready for production applications. It has now become stable for production applications.
The Hyperledger now backed by IBM. But, it is still an open source. These interview questions help you to read quickly. The below set of interview questions help you like a tutorial on Hyperledger fabric. Hyperledger Fabric Interview Questions1). What are Nodes?
In Hyperledger the communication entities are called Nodes.

2). What are the three different types of Nodes?
- Client Node
- Peer Node
- Order Node
The Client node initiates transactions. The peer node commits the transaction. The order node guarantees the delivery.

3). What is Channel?
A channel in Hyperledger is the subnet of the main blockchain. You c…