Python Program to Check Whether a Number is Positive or Negative

This is a Python Program to check whether a number is positive or negative. Problem Description The program takes a number and checks whether it is positive or negative. Problem Solution 1. Take the value of the integer and store in a variable. 2. Use an if statement to determine whether the number is positive … Read more

advertisement

Python Program to Read a Number n and Compute n+nn+nnn

This is a Python Program to read a number n and compute n+nn+nnn. Problem Description The program takes a number n and computes n+nn+nnn. Problem Solution 1. Take the value of a element and store in a variable n. 2. Convert the integer into string and store it in another variable. 3. Add the string … Read more

advertisement

Python Program to Print All Numbers in a Range Divisible by a Given Number

This is a Python Program to print all numbers in a range divisible by a given number. Problem Description The program prints all numbers in a range divisible by a given number. Problem Solution 1. Take in the upper range and lower range limit from the user. 2. Take in the number to be divided … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.