🔒 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.

About this Thread

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

Trending Topics

Online now

Members online
1,147
Guests online
3,360
Total visitors
4,507

Forum statistics

Threads
2,307,752
Posts
29,180,952
Members
1,192,599
Latest member
angelnoona
Back
Top