Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@sagarbabalsure
Copy link
Contributor

codes for packages like numpy,random and pyqrcode

Copy link
Collaborator

@alnouirah alnouirah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would be great if you can add some extra explanation for this package !

Comment on lines +1 to +21
#example 2
#added by @sagarbabalsure
#This example is like guess game.Where user try to guess the randomly generated number in three trials.


import string
import random
from random import randint
x = randint(1, 100)
print(x)
count=3
while count>0:
y=int(input("Enter your guess: "))
count=count-1
if x==y:
print("Oh..your guess is correct")
else:
print("you have %d guesses remaining" %(count))
if count==0:
print("sorry you lose")

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This example is like guess game.Where user try to guess the randomly generated number in three trials.

adding new line at the end .
Copy link
Collaborator

@alnouirah alnouirah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Qr generator.

Modules/qr_en.py Outdated
Comment on lines 1 to 13
#example 1
#added by @sagarbabalsure
#This example create the "QR CODE" for entered string and make the file 'myqr.svg' in your present folder.
#By scanning this qrcode you can go to that url




import pyqrcode
from pyqrcode import QRCode
s=raw_input("Enter any url to make qr code: ")
url=pyqrcode.create(s)
url.svg("myqr.svg",scale=8) No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding new line at the end .

@alnouirah alnouirah merged commit 722506c into remon:master Oct 17, 2019
@ghost ghost self-assigned this Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.