Codename: Python

Wednesday, August 21, 2019

Math Quiz


Guess = int(input("What is 2 X 7?"))

if Guess == 2*7:
    print(str(Guess) + ' is correct!')
   
else:
   print('You said ' + str(Guess) + '. I got ' + str(2*7))
Posted by Ashikur Rahman at 6:20 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Ashikur Rahman
View my complete profile

Blog Archive

  • ▼  2019 (21)
    • ►  November (1)
    • ▼  August (20)
      • Basic Hexagon
      • Basic star
      • Rainbow Spiral
      • Spiral Helix Pattern
      • Square Spiral Basic
      • Colorful Spiral
      • Basic Spiral
      • Math quiz with randint
      • Math Quiz
      • Turtle Race with Winner Announcement
      • Turtle circle 2
      • Thor from Asgard
      • For loops in Turtle
      • OOP oldest dog
      • basic of declaring class
      • The class to create monsters
      • How many even nums in the range (2,20,3)
      • Flies with Turtle
      • Turtle Circle
      • Turtle Race
Awesome Inc. theme. Powered by Blogger.