Skip to content

Commit

Permalink
Update 100+ Python challenging programming exercises.txt
Browse files Browse the repository at this point in the history
fixed #33
  • Loading branch information
zhiwehu committed Apr 27, 2018
1 parent a752156 commit 22bb9b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 100+ Python challenging programming exercises.txt
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ Question:
Write a program that computes the net amount of a bank account based a transaction log from console input. The transaction log format is shown as following:
D 100
W 200
¡­

D means deposit while W means withdrawal.
Suppose the following input is supplied to the program:
D 300
Expand Down

18 comments on commit 22bb9b3

@ammysaral17
Copy link

Choose a reason for hiding this comment

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

Thanks a lot...

@kywatsoke
Copy link

Choose a reason for hiding this comment

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

Thank you for this collection of Python exercises, @zhiwehu

@neeleshthakur333
Copy link

Choose a reason for hiding this comment

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

Thank you, you did great work. i was looking exercises like that. again thank u

@ubaid142
Copy link

Choose a reason for hiding this comment

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

thank you

@cheney369
Copy link

Choose a reason for hiding this comment

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

thanks

@cocharo
Copy link

Choose a reason for hiding this comment

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

Thanks

@cheney369
Copy link

Choose a reason for hiding this comment

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

Hello, I have a question.
What does raw_input() in Question 2 and 3 mean?
I didn't get it...

if you use python3 , input() have replaced the raw_input().
In python2, raw_input() can input everything and it change it to str, but input, you need to add 'str' or it will be wrong when you input something.

@shiduopili
Copy link

Choose a reason for hiding this comment

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

Thank you!!

@keeelho
Copy link

Choose a reason for hiding this comment

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

thank you!

@sherlockH221B
Copy link

Choose a reason for hiding this comment

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

thank you so much

@cabrwu
Copy link

@cabrwu cabrwu commented on 22bb9b3 Apr 4, 2020

Choose a reason for hiding this comment

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

Thank you very much

@apoud
Copy link

@apoud apoud commented on 22bb9b3 Jun 1, 2020

Choose a reason for hiding this comment

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

شكراااااا

@Nababuku
Copy link

Choose a reason for hiding this comment

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

Thank You Guys <3

@senkasimicheal
Copy link

Choose a reason for hiding this comment

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

Thank you for the exercise

@bhatikunal
Copy link

Choose a reason for hiding this comment

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

Thank you for the given excercises..

@sumonset
Copy link

Choose a reason for hiding this comment

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

Thank you

@ckvtvm-arch
Copy link

Choose a reason for hiding this comment

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

great work man

@vanshdhiwar09
Copy link

Choose a reason for hiding this comment

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

nterms = int(input("How many numbers"))
n1,n2 = 0,1
count = 0
if nterms <= 0:
print("Please enter a positive integer")
elif nterms == 1:
print("Fibonnaci sequence upto",nterms,":")
print("n1")
else:
print("Fibonnaci sequence.")
while count < nterms:
print(n1)
nth = n1 + n2
n1 = n2
n2 = nth
count += 1

Please sign in to comment.