🔒 Closed Paano po ito? Phyton...

Status
Not open for further replies.
Python:
num = [9, 2, 4, 10, 1, 3, 6, 7, 8, 5]
print('The max number is: {}'.format(max(num)))

RESULT:
The max number is: 10

ok na ba yang question mo?
Ginawan ko din ng sample para mag input ka


Python:
lst = []
for _ in range(int(input('Input how many numbers: '))):
    numbers = int(input("Enter number: "))
    lst.append(numbers)

print('The max number is: {}'.format(max(lst)))

RESULT:

Input how many numbers: 3
Enter number: 4
Enter number: 10
Enter number: 3
The max number is: 10
 
Lods maalam po kayo mag flowcharting? May nakuha lang po kasi ako na codes dito binigay sakin para sa programming class nmn ngunit diko gaano kabisado mag flow at wala natatak na info sa isipan haha.
 
Lods maalam po kayo mag flowcharting? May nakuha lang po kasi ako na codes dito binigay sakin para sa programming class nmn ngunit diko gaano kabisado mag flow at wala natatak na info sa isipan haha.
Marunong. Kaso pag mga assignment na talaga, di ako natulong haha
Much better kasi ikaw magreresearch tutal may google naman :) Mas mahihirapan ka kung sa iba manggagaling yung idea
 
Status
Not open for further replies.

Similar threads

About this Thread

  • 11
    Replies
  • 342
    Views
  • 4
    Participants
Last reply from:
Calamansi_07

Online now

Members online
883
Guests online
720
Total visitors
1,603

Forum statistics

Threads
2,275,560
Posts
28,964,083
Members
1,231,863
Latest member
Tuytoy
Back
Top