SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
Python
I have some code done, just have to get a calculation to get a radius
Source code
//
from math import pi
print("What is your name?")
name = input()
print("What is the color of the ball?: ")
color = input()
print("What is the radius of the ball?: ")
radius = input()
area = 4/3 * pi * radius * radius * radius
radius = float(input("Hello " + str(name) + ", the ball is " + str(color) + " and has a volume of " +
radius + " cubic inches."))
// What is the radius of the ball?: 5 Traceback (most recent call last): area =4/3 pi radius radius
radius TypeError: can't multiply sequence by non-int of type 'float'

Weitere ähnliche Inhalte

Mehr von alfacomputers2

Q1. Imagine a researcher starting work on the obesity epidemic. In t.pdf
Q1. Imagine a researcher starting work on the obesity epidemic. In t.pdfQ1. Imagine a researcher starting work on the obesity epidemic. In t.pdf
Q1. Imagine a researcher starting work on the obesity epidemic. In t.pdfalfacomputers2
 
Q1 What is allocation or absorption The margin allocated to each .pdf
Q1 What is allocation or absorption The margin allocated to each .pdfQ1 What is allocation or absorption The margin allocated to each .pdf
Q1 What is allocation or absorption The margin allocated to each .pdfalfacomputers2
 
Q1 Which white blood cell assists in the regulation of the immune re.pdf
Q1 Which white blood cell assists in the regulation of the immune re.pdfQ1 Which white blood cell assists in the regulation of the immune re.pdf
Q1 Which white blood cell assists in the regulation of the immune re.pdfalfacomputers2
 
Q1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdf
Q1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdfQ1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdf
Q1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdfalfacomputers2
 
Q.4 Consider the experiment of rolling a pair of dice. Suppose that .pdf
Q.4 Consider the experiment of rolling a pair of dice. Suppose that .pdfQ.4 Consider the experiment of rolling a pair of dice. Suppose that .pdf
Q.4 Consider the experiment of rolling a pair of dice. Suppose that .pdfalfacomputers2
 
PyJa Institute is an institute set up to manage the following progra.pdf
PyJa Institute is an institute set up to manage the following progra.pdfPyJa Institute is an institute set up to manage the following progra.pdf
PyJa Institute is an institute set up to manage the following progra.pdfalfacomputers2
 
PurposeMany Americans are very generous donating their time, money.pdf
PurposeMany Americans are very generous donating their time, money.pdfPurposeMany Americans are very generous donating their time, money.pdf
PurposeMany Americans are very generous donating their time, money.pdfalfacomputers2
 
Provide an example of a business that grew too fast. What where the .pdf
Provide an example of a business that grew too fast. What where the .pdfProvide an example of a business that grew too fast. What where the .pdf
Provide an example of a business that grew too fast. What where the .pdfalfacomputers2
 
PurposeDetermining who has the right to claim the dependency exem.pdf
PurposeDetermining who has the right to claim the dependency exem.pdfPurposeDetermining who has the right to claim the dependency exem.pdf
PurposeDetermining who has the right to claim the dependency exem.pdfalfacomputers2
 
Puello Corporation ha proporcionado los siguientes datos sobre un pr.pdf
Puello Corporation ha proporcionado los siguientes datos sobre un pr.pdfPuello Corporation ha proporcionado los siguientes datos sobre un pr.pdf
Puello Corporation ha proporcionado los siguientes datos sobre un pr.pdfalfacomputers2
 
Provided their employers followed the recommended guidelines, which .pdf
Provided their employers followed the recommended guidelines, which .pdfProvided their employers followed the recommended guidelines, which .pdf
Provided their employers followed the recommended guidelines, which .pdfalfacomputers2
 
Provide a reporting information for the POM+ project. MSProject has .pdf
Provide a reporting information for the POM+ project. MSProject has .pdfProvide a reporting information for the POM+ project. MSProject has .pdf
Provide a reporting information for the POM+ project. MSProject has .pdfalfacomputers2
 
Prostitution and solicitation are referred to as victimless crimes. .pdf
Prostitution and solicitation are referred to as victimless crimes. .pdfProstitution and solicitation are referred to as victimless crimes. .pdf
Prostitution and solicitation are referred to as victimless crimes. .pdfalfacomputers2
 
Proporcione una breve historia del desarrollo del federalismo en los.pdf
Proporcione una breve historia del desarrollo del federalismo en los.pdfProporcione una breve historia del desarrollo del federalismo en los.pdf
Proporcione una breve historia del desarrollo del federalismo en los.pdfalfacomputers2
 
Project topic - Development of a Predictive Maintenance System usin.pdf
Project topic - Development of a Predictive Maintenance System usin.pdfProject topic - Development of a Predictive Maintenance System usin.pdf
Project topic - Development of a Predictive Maintenance System usin.pdfalfacomputers2
 
PROJECT PAPER TOPIC Developing a security policy framework for smal.pdf
PROJECT PAPER TOPIC Developing a security policy framework for smal.pdfPROJECT PAPER TOPIC Developing a security policy framework for smal.pdf
PROJECT PAPER TOPIC Developing a security policy framework for smal.pdfalfacomputers2
 
Professor Donald Henderson first pointed out how discussions of ambi.pdf
Professor Donald Henderson first pointed out how discussions of ambi.pdfProfessor Donald Henderson first pointed out how discussions of ambi.pdf
Professor Donald Henderson first pointed out how discussions of ambi.pdfalfacomputers2
 
Profes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdf
Profes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdfProfes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdf
Profes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdfalfacomputers2
 
Profit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdf
Profit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdfProfit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdf
Profit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdfalfacomputers2
 
Process integration addresses the integration of tools where differe.pdf
Process integration addresses the integration of tools where differe.pdfProcess integration addresses the integration of tools where differe.pdf
Process integration addresses the integration of tools where differe.pdfalfacomputers2
 

Mehr von alfacomputers2 (20)

Q1. Imagine a researcher starting work on the obesity epidemic. In t.pdf
Q1. Imagine a researcher starting work on the obesity epidemic. In t.pdfQ1. Imagine a researcher starting work on the obesity epidemic. In t.pdf
Q1. Imagine a researcher starting work on the obesity epidemic. In t.pdf
 
Q1 What is allocation or absorption The margin allocated to each .pdf
Q1 What is allocation or absorption The margin allocated to each .pdfQ1 What is allocation or absorption The margin allocated to each .pdf
Q1 What is allocation or absorption The margin allocated to each .pdf
 
Q1 Which white blood cell assists in the regulation of the immune re.pdf
Q1 Which white blood cell assists in the regulation of the immune re.pdfQ1 Which white blood cell assists in the regulation of the immune re.pdf
Q1 Which white blood cell assists in the regulation of the immune re.pdf
 
Q1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdf
Q1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdfQ1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdf
Q1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdf
 
Q.4 Consider the experiment of rolling a pair of dice. Suppose that .pdf
Q.4 Consider the experiment of rolling a pair of dice. Suppose that .pdfQ.4 Consider the experiment of rolling a pair of dice. Suppose that .pdf
Q.4 Consider the experiment of rolling a pair of dice. Suppose that .pdf
 
PyJa Institute is an institute set up to manage the following progra.pdf
PyJa Institute is an institute set up to manage the following progra.pdfPyJa Institute is an institute set up to manage the following progra.pdf
PyJa Institute is an institute set up to manage the following progra.pdf
 
PurposeMany Americans are very generous donating their time, money.pdf
PurposeMany Americans are very generous donating their time, money.pdfPurposeMany Americans are very generous donating their time, money.pdf
PurposeMany Americans are very generous donating their time, money.pdf
 
Provide an example of a business that grew too fast. What where the .pdf
Provide an example of a business that grew too fast. What where the .pdfProvide an example of a business that grew too fast. What where the .pdf
Provide an example of a business that grew too fast. What where the .pdf
 
PurposeDetermining who has the right to claim the dependency exem.pdf
PurposeDetermining who has the right to claim the dependency exem.pdfPurposeDetermining who has the right to claim the dependency exem.pdf
PurposeDetermining who has the right to claim the dependency exem.pdf
 
Puello Corporation ha proporcionado los siguientes datos sobre un pr.pdf
Puello Corporation ha proporcionado los siguientes datos sobre un pr.pdfPuello Corporation ha proporcionado los siguientes datos sobre un pr.pdf
Puello Corporation ha proporcionado los siguientes datos sobre un pr.pdf
 
Provided their employers followed the recommended guidelines, which .pdf
Provided their employers followed the recommended guidelines, which .pdfProvided their employers followed the recommended guidelines, which .pdf
Provided their employers followed the recommended guidelines, which .pdf
 
Provide a reporting information for the POM+ project. MSProject has .pdf
Provide a reporting information for the POM+ project. MSProject has .pdfProvide a reporting information for the POM+ project. MSProject has .pdf
Provide a reporting information for the POM+ project. MSProject has .pdf
 
Prostitution and solicitation are referred to as victimless crimes. .pdf
Prostitution and solicitation are referred to as victimless crimes. .pdfProstitution and solicitation are referred to as victimless crimes. .pdf
Prostitution and solicitation are referred to as victimless crimes. .pdf
 
Proporcione una breve historia del desarrollo del federalismo en los.pdf
Proporcione una breve historia del desarrollo del federalismo en los.pdfProporcione una breve historia del desarrollo del federalismo en los.pdf
Proporcione una breve historia del desarrollo del federalismo en los.pdf
 
Project topic - Development of a Predictive Maintenance System usin.pdf
Project topic - Development of a Predictive Maintenance System usin.pdfProject topic - Development of a Predictive Maintenance System usin.pdf
Project topic - Development of a Predictive Maintenance System usin.pdf
 
PROJECT PAPER TOPIC Developing a security policy framework for smal.pdf
PROJECT PAPER TOPIC Developing a security policy framework for smal.pdfPROJECT PAPER TOPIC Developing a security policy framework for smal.pdf
PROJECT PAPER TOPIC Developing a security policy framework for smal.pdf
 
Professor Donald Henderson first pointed out how discussions of ambi.pdf
Professor Donald Henderson first pointed out how discussions of ambi.pdfProfessor Donald Henderson first pointed out how discussions of ambi.pdf
Professor Donald Henderson first pointed out how discussions of ambi.pdf
 
Profes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdf
Profes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdfProfes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdf
Profes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdf
 
Profit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdf
Profit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdfProfit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdf
Profit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdf
 
Process integration addresses the integration of tools where differe.pdf
Process integration addresses the integration of tools where differe.pdfProcess integration addresses the integration of tools where differe.pdf
Process integration addresses the integration of tools where differe.pdf
 

Kürzlich hochgeladen

AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 

Kürzlich hochgeladen (20)

AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 

PythonI have some code done, just have to get a calculation to get.pdf

  • 1. Python I have some code done, just have to get a calculation to get a radius Source code // from math import pi print("What is your name?") name = input() print("What is the color of the ball?: ") color = input() print("What is the radius of the ball?: ") radius = input() area = 4/3 * pi * radius * radius * radius radius = float(input("Hello " + str(name) + ", the ball is " + str(color) + " and has a volume of " + radius + " cubic inches.")) // What is the radius of the ball?: 5 Traceback (most recent call last): area =4/3 pi radius radius radius TypeError: can't multiply sequence by non-int of type 'float'