Skip to content

Commit 32ddf0a

Browse files
committed
created and practice some questions
0 parents  commit 32ddf0a

File tree

6 files changed

+62
-0
lines changed

6 files changed

+62
-0
lines changed

Chapter_1.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Que: write twinkle twinkle little star poem in python
2+
3+
# for print multiple line we need to use three sigle code or three double codes same as comment
4+
print('''Twinkle, twinkle, little star, how I wonder what you are. Up above the world so high,
5+
like a diamond in the sky. Twinkle, twinkle, little star, how I wonder what you are.
6+
When the blazing sun is set, and the grass with dew is wet. Then you show your little
7+
light, twinkle, twinkle all the night. Twinkle, twinkle little star, how I wonder what you
8+
are.
9+
Then the traveler in the dark thanks you for your tiny spark. How could he see where to
10+
go if you did not twinkle so? Twinkle, twinkle little star, how I wonder what you are.
11+
As your bright and tiny spark lights the traveler in the dark, though I know not what you
12+
are, twinkle, twinkle, little star. Twinkle, twinkle, little star, how I wonder what you are.''')
13+

calculator.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
a=int(input("enter first number: "))
2+
b=int(input("enter second number: "))
3+
sank=input("enter what you want to do: ")
4+
5+
6+
if(sank=="+") :
7+
print(a+b)
8+
9+
elif(sank=="-"):
10+
print(a-b)
11+
elif(sank=="x"):
12+
print(a*b)
13+
elif(sank=="/"):
14+
print(a/b)
15+
else :
16+
print(a%b)
17+

datatype.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
window-$python3

first.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# print("abhsihek ")
2+
3+
# a=int(input("enter your first number:"))
4+
# b=int(input("enter your second number:"))
5+
# if(a==b) :
6+
# print("this is testing code")
7+
# else:
8+
# print("those ara not same")
9+
10+
# Prime number check program in Python
11+
12+
print("helllo world")
13+
14+
# Module basically it is a pre build by someone by use that we did not write things from scratch . module make eassy for us to write code
15+
16+
# help by pip we can access or install any module : flash(webapp help us),django for install any module on system syntax is :pip install __module_name
17+
18+
# there are two type modules 1: built-in
19+
# 2: external module
20+
21+
# repl: read evalute print loop >>> it basically means is that in terminal or powershell when we will use python they it will work as repl first will read then will evalute and then will print output then again will start as for get new code that it
22+
23+
import pyjokes
24+
25+
# "Printing joke......."
26+
joke=pyjokes.get_joke()
27+
print(joke)
28+
29+
'''
30+
this is my program/ this is multiple line comment in python
31+
'''

module.py

Whitespace-only changes.

redme

Whitespace-only changes.

0 commit comments

Comments
 (0)