|
1 | 1 | # Language Comparison: Python vs Mojo |
2 | 2 |
|
3 | | -This repository compares Python and Mojo programming languages through the development of five simple programs. The purpose is to explore and contrast the basics of each language and provide insights into their performance. |
| 3 | +Hey there! I am new to both Python and Mojo languages. In this repository, I went on a mission to explore and compare these two languages from scratch, knowing only the basics of programming |
4 | 4 |
|
5 | 5 | ## Programs |
6 | 6 |
|
7 | | -1. **Hello World:** |
8 | | - - Description: Basic program printing "Hello, World!" to the console. |
9 | | - - [Python Code](link/to/python/hello_world.py) |
10 | | - - [Mojo Code](link/to/mojo/hello_world.mojo) |
| 7 | +1. **Length of last word** |
| 8 | + Description: returning the length of the last word in the string. |
| 9 | + |
11 | 10 |
|
12 | | -2. **Sum Calculator:** |
13 | | - - Description: Program to calculate the sum of two numbers. |
14 | | - - [Python Code](link/to/python/sum_calculator.py) |
15 | | - - [Mojo Code](link/to/mojo/sum_calculator.mojo) |
| 11 | +2. **Palindrome number:** |
| 12 | + Description: returning true if input is a palindrome and false otherwise. |
| 13 | + |
16 | 14 |
|
17 | | -3. **Factorial Calculator:** |
18 | | - - Description: Program to compute the factorial of a given number. |
19 | | - - [Python Code](link/to/python/factorial_calculator.py) |
20 | | - - [Mojo Code](link/to/mojo/factorial_calculator.mojo) |
| 15 | +3. **Student attendance record** |
| 16 | + - Description: Whether or not the student is eligible for an attendance award |
| 17 | + |
| 18 | + |
| 19 | +4. **Detect Capital letter usage** |
| 20 | + - Description: Returning true if the usage of capitals in it is right. |
| 21 | + |
21 | 22 |
|
22 | | -4. **Fibonacci Sequence:** |
23 | | - - Description: Program to generate the Fibonacci sequence up to a specified limit. |
24 | | - - [Python Code](link/to/python/fibonacci_sequence.py) |
25 | | - - [Mojo Code](link/to/mojo/fibonacci_sequence.mojo) |
26 | | - |
27 | | -5. **Palindrome Checker:** |
28 | | - - Description: Program to check if a given string is a palindrome. |
29 | | - - [Python Code](link/to/python/palindrome_checker.py) |
30 | | - - [Mojo Code](link/to/mojo/palindrome_checker.mojo) |
| 23 | +5. **Find the difference:** |
| 24 | + - Description: Returning the extra letter among 2 strings |
| 25 | + |
31 | 26 |
|
32 | 27 | ## Benchmarking and Testing |
33 | 28 |
|
34 | | -The performance of both languages was benchmarked using [insert tools/methodologies]. Test scenarios, inputs, and expected outputs were carefully examined to provide a comprehensive overview of the languages' capabilities. |
| 29 | +The performance of both languages was benchmarked using Hyperfine. Programs were tested and outputs were compared to see which one of them was faster |
35 | 30 |
|
36 | 31 | ## Results |
| 32 | +.. |
37 | 33 |
|
38 | | -The results of the benchmarking and testing are outlined in [Results.md](link/to/results.md). Explore the findings to understand the strengths and weaknesses of Python and Mojo in different scenarios. |
39 | | - |
40 | | -## Contributing |
41 | | - |
42 | | -If you're interested in contributing to this project, feel free to open issues, submit pull requests, or provide feedback. Check out the [Contribution Guidelines](link/to/contributing.md) for more details. |
43 | | - |
44 | | -## License |
45 | | - |
46 | | -This project is licensed under the [MIT License](link/to/license.md) - see the [LICENSE.md](link/to/license.md) file for details. |
0 commit comments