Python Forum
I am an absolute newbie.Help me!
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I am an absolute newbie.Help me!
#1
print("If your credit score is good type G")
print("if your credit score is bad type B")
credit_score = input("Please enter your credit score now")

if credit_score in ['g','G']:
    print("Your down payment is .1 million")
elif credit_score in ['b','B']:
    print("Your down payment is .2 million")
I am trying to write a program that outputs the downpayment for a house purchase based on whether a person's credit rating is good or not. I am getting the reply "Process finished with exit code 0".Please tell me what is wrong with my code.
Reply


Messages In This Thread
I am an absolute newbie.Help me! - by feynarun - Apr-11-2020, 08:52 PM
RE: I am an absolute newbie.Help me! - by buran - Apr-11-2020, 08:55 PM
RE: I am an absolute newbie.Help me! - by feynarun - Apr-11-2020, 09:09 PM
RE: I am an absolute newbie.Help me! - by buran - Apr-11-2020, 09:20 PM
RE: I am an absolute newbie.Help me! - by feynarun - Apr-11-2020, 09:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Absolute paths in subprocess - file not found kittyticker 4 397 Jan-28-2024, 10:37 PM
Last Post: kittyticker
  automatically get absolute paths oclmedyb 1 2,061 Mar-11-2021, 04:31 PM
Last Post: deanhystad
  Absolute beginner am I missing something? kamren 7 3,105 Sep-25-2020, 05:32 AM
Last Post: buran
  chkFile with absolute paths JarredAwesome 7 2,911 Sep-21-2020, 03:51 AM
Last Post: bowlofred
  absolute imports between folders mikisDW 0 1,500 Aug-05-2020, 12:26 PM
Last Post: mikisDW
  Absolute newbie asking for help with blinking LEDs misterfrickel 0 2,033 Mar-15-2019, 08:54 AM
Last Post: misterfrickel
  Absolute Beginner Python Question matchamochi7 5 3,602 Nov-02-2018, 12:09 PM
Last Post: wookie
  Absolute Beginner to Python dthomp54 5 3,063 Oct-09-2018, 03:00 AM
Last Post: dthomp54
  Problem with absolute path to file (Mr.Stickman Problems) SheeppOSU 3 6,163 Jun-26-2018, 10:05 AM
Last Post: Larz60+
  coding error from a script (absolute noob) fuchls 2 3,856 Jun-08-2018, 02:29 PM
Last Post: webrunner1981

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020