Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,208,552 members, 8,002,957 topics. Date: Thursday, 14 November 2024 at 10:28 PM

Can Someone Help With This Python Problems - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Can Someone Help With This Python Problems (1280 Views)

Python Problems / Help With This Python Programming Assignment Please / ASK For Solutions On Your (php,css,c,c++,python) Problems Here (2) (3) (4)

(1) (Reply) (Go Down)

Can Someone Help With This Python Problems by seunny4lif(m): 9:10pm On Aug 06, 2021
create a program called InandOut which analyses a building’s access logs identify.

One type of Alarm arises when the log indicates an employee enters the building when already inside.

A second type of Alarm arises when the log indicates an employee exits the building when not currently inside.

You may assume the building is initially empty.

Names of the staffs
entry Mark
entry Mark
exit Mark
entry Yemi
exit James
entry Funke
exit Olla
entry Matthew

Mark entered
Mark entered (ALARM)
Mark exited
entry entered
James exited (ALARM)
Funke entered
Olla exited (ALARM)
Matthew entered

my solution for far

import sys

def main():
for line in sys.stdin:
line = line.strip().split()

if line[0] == "entry":
print(line[1], "entered" )

else:
print(line[1], "exited" )

if __name__ == "__main__":
main()


Someone help
Modified
Got it cool

1 Like

Re: Can Someone Help With This Python Problems by seunny4lif(m): 9:58pm On Aug 06, 2021
Anyone please
Re: Can Someone Help With This Python Problems by spartan117(m): 10:15pm On Aug 06, 2021
Re: Can Someone Help With This Python Problems by seunny4lif(m): 10:17pm On Aug 06, 2021
Re: Can Someone Help With This Python Problems by spartan117(m): 11:04pm On Aug 06, 2021
seunny4lif:
I don't understand you
Ok
Re: Can Someone Help With This Python Problems by seunny4lif(m): 11:12pm On Aug 06, 2021
cool
Re: Can Someone Help With This Python Problems by rotimiland(m): 9:01am On Sep 10, 2021
seunny4lif:
cool

Hello bro how can I reach you? I dont know if u see my mail.

Pls drop your email.
Re: Can Someone Help With This Python Problems by seunny4lif(m): 9:12am On Sep 10, 2021
rotimiland:


Hello bro how can I reach you? I dont know if u see my mail.

Pls drop your email.
Sorry
Hope no problem shocked
Re: Can Someone Help With This Python Problems by rotimiland(m): 1:23am On Sep 12, 2021
seunny4lif:

Sorry
Hope no problem shocked

No, just have one or two questions on settling in Germany or Begium.
Re: Can Someone Help With This Python Problems by athant: 3:40am On Sep 12, 2021
Jjii
Re: Can Someone Help With This Python Problems by seunny4lif(m): 9:26am On Sep 12, 2021
rotimiland:


No, just have one or two questions on settling in Germany or Begium.
No wahala
Re: Can Someone Help With This Python Problems by rotimiland(m): 6:23am On Sep 14, 2021
seunny4lif:

No wahala

rotimialert at yahoo.com
Re: Can Someone Help With This Python Problems by seunny4lif(m): 7:01am On Sep 14, 2021
rotimiland:


rotimialert at yahoo.com
I don reply you

(1) (Reply)

Learn Datascience: The Complete Beginner To Advanced Method / Solutech (emmanuel Ikechukwu) Is A Fraud. Beware!!! / Challenge For Excel Users/enthusiast And All Distinguished Data Analyst

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 9
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.