The Wayback Machine - https://web.archive.org/web/20201117231047/https://github.com/Akuli/python-tutorial/pull/21
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some programs for python beginners #21

Open
wants to merge 1 commit into
base: master
from

Conversation

@tarusharora03
Copy link

@tarusharora03 tarusharora03 commented Sep 30, 2020

Adding some code examples for pythin beginners . Will be happy to help you with more . Looking forward to contribute more. Thank You . I hope you will add them .

count = 0
for nat in rax:
count = count + 1
print('Total Lines : ',count)

This comment has been minimized.

@Akuli

Akuli Oct 2, 2020
Owner

Can you put this program to basics/files.md, near other code examples of looping over a file, and add some text explaining what this code does?

for num in [74,54,63,98,41,28,74,63,85,98]:
if num > defNo:
defNo = num
print('Largest Number: ',defNo)

This comment has been minimized.

@Akuli

Akuli Oct 2, 2020
Owner

Can you turn this into a "fix this broken code" exercise and put it to loops.md?

@@ -0,0 +1,3 @@
import win10toast
toaster = win10toast.ToastNotifier()
toaster.show_toast('Rax','Its my PC',duration = 7)

This comment has been minimized.

@Akuli

Akuli Oct 2, 2020
Owner

Can you create an exercises section to basics/modules.md with an exercise saying e.g. "create a program that shows a notification"? This code should then go to basics/answers.md.

@tarusharora03
Copy link
Author

@tarusharora03 tarusharora03 commented Oct 6, 2020

Yeah, sure i will commit changes as per requested. I am creating some more programs regarding python for beginners and i will add them in this pull request. Just don't close it i will commit new changes in itself. Thank you for your feedback. Hope you liked the programs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.