Very new to python and wanted to do a pc build calc that will show me the price of each part and a recommendation of mine if they type YES I want two budget options 4000 INS and 8000 INS tried to do if the budget=4000 INS or 8000INS it will each component price but instead of it it just shows both things appreciate every help from anyone THX!
print("hello wlecome to Alon's pc build calc that will calculate how much money you need to spend on each part of the pc and what part to get for you to build your perfect pc!")
print("enter your budget! your options are 4000 INS or 8000 INS")
budget=input("enter yout budget")
if budget=="4000 INS":
CPU=22/100*4000
GPU=43/100*4000
MOBO=12/100*4000
RAM=10/100*4000
SSD=8/100*4000
PSU=7/100*4000
CASE=5/100*4000
print("CPU", str(CPU), ("INS"))
print("GPU", str(GPU), ("INS"))
print("MOBO", str(MOBO), ("INS"))
print("RAM", str(RAM), ("INS"))
print("SSD", str(SSD), ("INS"))
print("PSU", str(PSU), ("INS"))
print("case", str(CASE), ("INS"))
if budget=="8000 INS":
CPU=20/100*8000
GPU=40/100*8000
MOBO=10/100*8000
RAM=10/100*8000
SSD=10/100*8000
PSU=5/100*8000
CASE=5/100*8000
print("CPU", str( CPU), ("INS"))
print("GPU", str(GPU), ("INS"))
print("MOBO", str(MOBO), ("INS"))
print("RAM", str(RAM), ("INS"))
print("SSD", str(SSD), ("INS"))
print("PSU", str(PSU), ("INS"))
print("case", str(CASE), ("INS"))
want_specs1=input("want to know the specs i recommend if yes type YES if no type NO")
if budget=="4000 INS" and want_specs1=="YES":
print("AMD Ryzen 5600G 6 cores box MOBO-Asus prime B550M-K ARGB AM44 mATX DDR4 AMD RAM-Kingston fury Beast DDR4 3200Mhz 2*8GB Kingston 1TB NV2 PCIe 4.0 NVMe SSD M.2 GPU-MSI GeForce RTX 4060 Ventus 2X OC 8GB GDDR6 PSU-Corsair CX550 80 PLUS Bronze 550W case-Antec C5 ARGB Black")
submitted by /u/Careful-Flamingo3003
[link] [comments]
r/learnpython Very new to python and wanted to do a pc build calc that will show me the price of each part and a recommendation of mine if they type YES I want two budget options 4000 INS and 8000 INS tried to do if the budget=4000 INS or 8000INS it will each component price but instead of it it just shows both things appreciate every help from anyone THX! print(“hello wlecome to Alon’s pc build calc that will calculate how much money you need to spend on each part of the pc and what part to get for you to build your perfect pc!”) print(“enter your budget! your options are 4000 INS or 8000 INS”) budget=input(“enter yout budget”) if budget==”4000 INS”: CPU=22/100*4000 GPU=43/100*4000 MOBO=12/100*4000 RAM=10/100*4000 SSD=8/100*4000 PSU=7/100*4000 CASE=5/100*4000 print(“CPU”, str(CPU), (“INS”)) print(“GPU”, str(GPU), (“INS”)) print(“MOBO”, str(MOBO), (“INS”)) print(“RAM”, str(RAM), (“INS”)) print(“SSD”, str(SSD), (“INS”)) print(“PSU”, str(PSU), (“INS”)) print(“case”, str(CASE), (“INS”)) if budget==”8000 INS”: CPU=20/100*8000 GPU=40/100*8000 MOBO=10/100*8000 RAM=10/100*8000 SSD=10/100*8000 PSU=5/100*8000 CASE=5/100*8000 print(“CPU”, str( CPU), (“INS”)) print(“GPU”, str(GPU), (“INS”)) print(“MOBO”, str(MOBO), (“INS”)) print(“RAM”, str(RAM), (“INS”)) print(“SSD”, str(SSD), (“INS”)) print(“PSU”, str(PSU), (“INS”)) print(“case”, str(CASE), (“INS”)) want_specs1=input(“want to know the specs i recommend if yes type YES if no type NO”) if budget==”4000 INS” and want_specs1==”YES”: print(“AMD Ryzen 5600G 6 cores box MOBO-Asus prime B550M-K ARGB AM44 mATX DDR4 AMD RAM-Kingston fury Beast DDR4 3200Mhz 2*8GB Kingston 1TB NV2 PCIe 4.0 NVMe SSD M.2 GPU-MSI GeForce RTX 4060 Ventus 2X OC 8GB GDDR6 PSU-Corsair CX550 80 PLUS Bronze 550W case-Antec C5 ARGB Black”) submitted by /u/Careful-Flamingo3003 [link] [comments]
Very new to python and wanted to do a pc build calc that will show me the price of each part and a recommendation of mine if they type YES I want two budget options 4000 INS and 8000 INS tried to do if the budget=4000 INS or 8000INS it will each component price but instead of it it just shows both things appreciate every help from anyone THX!
print("hello wlecome to Alon's pc build calc that will calculate how much money you need to spend on each part of the pc and what part to get for you to build your perfect pc!")
print("enter your budget! your options are 4000 INS or 8000 INS")
budget=input("enter yout budget")
if budget=="4000 INS":
CPU=22/100*4000
GPU=43/100*4000
MOBO=12/100*4000
RAM=10/100*4000
SSD=8/100*4000
PSU=7/100*4000
CASE=5/100*4000
print("CPU", str(CPU), ("INS"))
print("GPU", str(GPU), ("INS"))
print("MOBO", str(MOBO), ("INS"))
print("RAM", str(RAM), ("INS"))
print("SSD", str(SSD), ("INS"))
print("PSU", str(PSU), ("INS"))
print("case", str(CASE), ("INS"))
if budget=="8000 INS":
CPU=20/100*8000
GPU=40/100*8000
MOBO=10/100*8000
RAM=10/100*8000
SSD=10/100*8000
PSU=5/100*8000
CASE=5/100*8000
print("CPU", str( CPU), ("INS"))
print("GPU", str(GPU), ("INS"))
print("MOBO", str(MOBO), ("INS"))
print("RAM", str(RAM), ("INS"))
print("SSD", str(SSD), ("INS"))
print("PSU", str(PSU), ("INS"))
print("case", str(CASE), ("INS"))
want_specs1=input("want to know the specs i recommend if yes type YES if no type NO")
if budget=="4000 INS" and want_specs1=="YES":
print("AMD Ryzen 5600G 6 cores box MOBO-Asus prime B550M-K ARGB AM44 mATX DDR4 AMD RAM-Kingston fury Beast DDR4 3200Mhz 2*8GB Kingston 1TB NV2 PCIe 4.0 NVMe SSD M.2 GPU-MSI GeForce RTX 4060 Ventus 2X OC 8GB GDDR6 PSU-Corsair CX550 80 PLUS Bronze 550W case-Antec C5 ARGB Black")
submitted by /u/Careful-Flamingo3003
[link] [comments]