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

Update Python:_Division.py #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions Python/Introduction/Python:_Division.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@
# Print the two lines as described above.

# Enter your code here. Read input from STDIN. Print output to STDOUT
a = int(raw_input())
b = int(raw_input())

print a / b
print float(a) / b
# We have to make raw_input a variable to run the code or it says that raw_input is not defined so just run your code once before submitting
#raw_input = input
# if we not use raw_input then also we can use input and make the code run and make your code smaller
#a = int(raw_input())
#b = int(raw_input())
a = int(input())
b = int(input())
print(a // b)
print(a / b)
# If we use '//' sign it will not make the output come in decimal or float
# I have commented the code which you can use if you want but I will recommend you to make your code smaller and more easy to write