[go: up one dir, main page]

0% found this document useful (0 votes)
6 views2 pages

Robotics and AI Project

The document contains a series of Python 3.12.4 console interactions demonstrating basic operations such as calculating the sum of the first 10 natural numbers, checking if a number is odd, and identifying the digits of a number. It also includes checks for buzz numbers, where 35 is identified as a buzz number while 45 is not. The interactions showcase the functionality of Python for simple arithmetic and number classification tasks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

Robotics and AI Project

The document contains a series of Python 3.12.4 console interactions demonstrating basic operations such as calculating the sum of the first 10 natural numbers, checking if a number is odd, and identifying the digits of a number. It also includes checks for buzz numbers, where 35 is identified as a buzz number while 45 is not. The interactions showcase the functionality of Python for simple arithmetic and number classification tasks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Python 3.12.4 (tags/v3.12.4:8e8a4ba, Jun 6 2024, 19:30:16) [MSC v.

1940 64
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.

The sum of the first 10 natural numbers is 55

Python 3.12.4 (tags/v3.12.4:8e8a4ba, Jun 6 2024, 19:30:16) [MSC v.1940 64


bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.

Enter a number :87


87 is ODD

Python 3.12.4 (tags/v3.12.4:8e8a4ba, Jun 6 2024, 19:30:16) [MSC v.1940 64


bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.

Enter a number 4521


1
2
5
4
Python 3.12.4 (tags/v3.12.4:8e8a4ba, Jun 6 2024, 19:30:16) [MSC v.1940 64
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.

1
3
5
7
9
11
13
15
17
19

Python 3.12.4 (tags/v3.12.4:8e8a4ba, Jun 6 2024, 19:30:16) [MSC v.1940 64


bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.

Enter a number45
The number is not a buzz number

Enter a number35
The number is a buzz number

You might also like