Contact
Privacy
Coding Development Art
  • Home
  • Latest
  • Oldest
  • Popular
  • Random
  • Home»
  • Categrories»
  • Programming Languages»
  • Python»

Write a program to find the factorial of a number - Python

Categories:
Python
Viewed: 4 - Published at: a few seconds ago

[ Write a program to find the factorial of a number ]

num = 13
factorial = 1

if num < 0:
   print("No factorials for negative numbers!")

elif num == 0:
   print("The factorial of 0 is 1")

else:
   for i in range(1,num + 1):
       factorial = factorial*i
   print(f"The factorial of {num} is {factorial}")

Related Posts:

Spring Cloud: Turbine
Spring Cloud: Turbine
Java
Git: Show Date of a Commit
Git: Show Date of a Commit
Git
8 Things Every Design Student Needs To Know To Succeed
8 Things Every Design Student Needs To Know To Succeed
Design
ES6 Symbols
ES6 Symbols
JavaScript
Introduction to PL/SQL Programming
Introduction to PL/SQL Programming
PL/SQL
PL/SQL Program to Find Greatest of Three Numbers
PL/SQL Program to Find Greatest of Three Numbers
PL/SQL

You may also like:

AWS S3 with Java - Uploading Files, Creating and Deleting S3 Buckets
AWS S3 with Java - Uploading Files, Creating and Deleting S3 Buckets
Java
How to Bypass Cyberoam by using Wayback Machine to Access Blocked Sites on Wi-Fi [100% Working]
How to Bypass Cyberoam by using Wayback Machine to Access Blocked Sites on Wi-Fi [100% Working]
Internet
Where to Get Help with Programming Assignments?
Where to Get Help with Programming Assignments?
Sponsored
Null Coalescing Operator in JavaScript with ECMAScript 2020
Null Coalescing Operator in JavaScript with ECMAScript 2020
JavaScript
Binary Search Tree in C
Binary Search Tree in C
Data Structure
Best Free Grammar & Punctuation Checker for Your Help
Best Free Grammar & Punctuation Checker for Your Help
Sponsored
Categories
  • Blog
    • Career
    • Computer
    • Downloads
    • Internet
    • Linux
    • News
    • Review
    • Security
    • Technology
  • Database
    • MySql
    • Oracle Database
    • SQL Server
    • SQLite
    • mongodb
  • Dev
    • Algorithm
    • Android
    • Batch File Programming
    • Books
    • Competitive Programming
    • Computer Networks
    • Data Structure
    • Design
    • Development
    • Flutter
    • Game
    • Git
    • Interview Questions
    • JDBC
    • Machine Learning
    • Mobile
    • Operating System
    • Programming
    • Projects
    • Sponsored
    • Webservice
    • iOS
  • Framework
    • .NET
    • Angular
    • Django
    • MVC
    • Nodejs
    • React
  • Programming Languages
    • ASP.NET
    • C Programs
    • C#
    • C++ Programs
    • CSS
    • HTML
    • JSP
    • Java
    • JavaScript
    • PHP
    • PL/SQL
    • Python
    • SQL
    • Swift
    • VB.NET
  • Tools
    • privacy-policy-generator
    • Mac Vendors
    • Ports Numbers
    • Wifi Routers Passwords

Site all the data, are collected from Internet, belongs to original author, please do not used for commercial purposes !

Coding Development Art
  https://www.codevelop.art
 
  contact@codevelop.art

Posts

  • Home
  • Latest
  • Oldest
  • Popular
  • Random

Follow Us

© 2018 codevelop.art - Coding Develop Art - programming and development tutorials blog - Learn all Program languages | codevelop.art.
All Rights Reserved.
  • Contact
  • Privacy
  • Terms of service
  • Copyright
  • Disclaimer