Skip to content

Commit 008048f

Browse files
authored
Update README.md
1 parent 4f12278 commit 008048f

File tree

1 file changed

+19
-32
lines changed

1 file changed

+19
-32
lines changed

README.md

Lines changed: 19 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,33 @@
11
# Language Comparison: Python vs Mojo
22

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
44

55
## Programs
66

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+
1110

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+
1614

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+
2122

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+
3126

3227
## Benchmarking and Testing
3328

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
3530

3631
## Results
32+
..
3733

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

Comments
 (0)