Computer Science, asked by atahrv, 5 months ago

Please answer this...I will mark brainliest if the solution is appropriate .

Attachments:

Answers

Answered by Arceus02
4

Programming language:-

Python

Answer:-

patient_name = input('Enter your name: ')

days = input('Enter number of days: ')

type = input('There are two patient types. Enter 1 for OPD and 2 for Private: ')

if int(type) == 1:

print('Daily charge: 300')

total_bill1 = 300 * int(days)

print('Total bill: ')

print(total_bill1)

else:

print('Daily charge: 2000')

total_bill2 = 2000 * int(days)

print('Total bill: ')

print(total_bill2)

Answered by MysteriousAryan
1

Answer:

Python is an interpreted, high-level and general-purpose programming language. Created by Guido van Rossum and first released in 1991, Python's design philosophy emphasizes code readability with its notable use of significant whitespace.

Typing discipline: Duck, dynamic, gradual (since 3.5)

Stable release: 3.8.5 / 20 July 2020; 42 days ago

Preview release: 3.9.0rc1 / 11 August 2020; 20 days ago

Designed by: Guido van Rossum

OS: Linux, macOS, Windows Vista (and newer) and more

Similar questions