Related questions
Python code for the following scenario (attached as an image) the input file data or know as the steps have been listed below as the google doc cant be uploaded they follow the same order mentioned in the question so (The first line is the number of steps taken on January 1st, the second line is the number of steps taken on January 2nd, and so forth.)
1102
9236
10643
2376
6815
10394
3055
3750
4181
5452
10745
9896
255
9596
1254
2669
1267
1267
1327
10207
5731
8435
640
5624
1062
3946
3796
9381
5945
10612
1970
9035
1376
1919
2868
5847
685
10578
3477
3937
5994
6971
3011
4474
4344
8068
6564
2659
4064
1161
6830
5167
5686
5352
898
4316
7699
6406
6466
2802
1239
8162
398
9908
8251
8419
6245
8484
9012
6318
853
4031
868
8776
10453
1026
1984
8127
5274
6937
1960
9655
1279
9386
6697
6326
2509
7127
7802
8798
6564
7220
10650
3847
7485
10951
3883
9456
4671
2067
6871
1573
8746
7473
4713
1215
8486
6652
4054
10304
5291
2680
9108
6446
1581
7607
2032
7630
1106
3702
986
8602
556
2209
3055
886
5813
6513
3154
1534
6271
611
4001
6522
3819
8396
2364
9660
5937
2506
9002
8586
8805
552
5802
7825
5610
8169
602
5638
2072
3536
5885
9334
6393
9318
6057
5812
5647
4654
1880
634
3084
9606
2287
3032
4030
5627
1314
8489
1601
8559
2083
5520
1829
2890
4533
3225
7405
3985
5521
1127
7109
8083
3615
1475
2896
10523
7108
797
8443
169
8755
5761
9862
9032
1659
10944
6878
1253
4690
9934
8820
41
9367
1898
3554
10650
3136
3574
9682
3950
691
8247
6677
10381
8879
8660
6431
6030
365
10357
10526
9245
5291
4651
5741
800
540
6074
68
8714
5095
4578
10841
5805
6676
2547
203
10988
604
9057
3787
2397
10984
9807
1703
6382
9793
8592
1279
8005
5297
7166
4070
4252
606
6443
10827
8140
5740
10844
8834
3695
4152
10662
8791
7791
9940
831
2999
2254
1161
808
4233
3562
3301
1530
7387
6425
9907
9752
4533
7079
3305
5286
4313
1503
6501
8201
1723
9501
9878
1844
5976
6171
10265
2607
10667
2310
836
2618
9813
5907
6849
470
8794
528
2327
2200
237
618
4898
1307
3212
1007
1322
10409
6956
8653
3462
3207
9210
1309
4431
9106
7737
1698
1117
3826
5297
5589
3199
9089
5967
3156
5919
2855
5985
1780
6267
6303
9855
3843
1816
2876
5973
2888
709
6509
4320
10342
2616
4887
10470
6084
4573
2457
10205
4627
7927
1703
5034
7042
4292
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps with 2 images
- please answer the image using python codearrow_forwardPYTHON PROGRAMMING LANGUAGE Create a new text document called names.txt (this is done by hand - not using programming) with the following names: Adam, Bryan, Charlie. Each name should be followed by a hard return (do not store them in a list). Main Function. Write a program where the user enters a name. Using the read function, check to see if the name is in the text document. If it is, respond back to the user the name is found within the list. Read Function. The read function should return the contents of the text document as a list. Write Function. The write function should take the list and override the file with the new names list in reverse alphabetical order with a hard return after each name. EXAMPLEPlease enter a name: AdamAdam is found in the list.Enter another name (Y/N): YPlease enter a name: AndrewSorry, Andrew was not found in the list. Would you like to add it? (Y/N): YAndrew has been added to the list.Enter another name (Y/N): N LIST EXAMPLEadambryancharlie Final...arrow_forwardTRUE OR FALSE // C PROGRAMMING LANGUAGE When a file opened for writing already exist its contents would be over writtenarrow_forward
- Jupyter Notebook Python 1. Give examples to show at least two different ways to select a subset of columns from data frame data. 2. Give examples to show at least two different ways to select a subset of rows from data frame data.arrow_forward***Using Python A report could be produced by a program like this: Timesheet data is easy to represent in a file, where it can be used to generate a report and help the worker get paid! Given an example set of data where each row represents a day of the week and each entry on the row represents a block of time worked, like this: 0h 1.5h 3.25h 3.0h 6.0h 1.0h 5.5h 2.25h 0.75h 2.25h 3.0h 3.0h 5.75h 2.25h 0h ---------------------------------------0.00h | 0.00h5.25h | 1.50h 3.25h 0.50h10.00h | 3.00h 6.00h 1.00h8.50h | 5.50h 2.25h 0.75h8.25h | 2.25h 3.00h 3.00h8.00h | 5.75h 2.25h0.00h | 0.00h---------------------------------------Weekly Total: 40.00h Notice how in the output file all the numbers are nicely formatted as right-aligned. Hint: you will probably need to use splitting, string slicing, converting data types, and string formatting. For your assignment, create a program that uses a data file that you have created, parses the data in that file to create a calculation per row and a...arrow_forwardMar 18: 13 Jan 2:27 Sep 09 : 6 Aug 16: 192 Apr 5 : 44 Each line of the file lists the date of the reading and the number of broken-down busses that day. The dates are not in any particular order. The date is listed with the standard 3-letter month name abbreviation with the first letter capitalized, followed by a single space, then date in 1 or 2 digits (with a possible leading zero if date is less than 10). The date field is separated from the bus count with a colon, with any number of optional whitespaces before and after the colon. Write a function named filterDays that takes as parameters an input file name, an integer lower bound, and an integer upper bound. It should return a list of all days for which the broken bus count was between the lower and upper bounds (both inclusive). The items of the list should be tuples of the form (mm/dd', count), where mm and dd are 2-digit numeric values. For instance, with the sample input file above, a lower bound of 10, and an upper bound of...arrow_forward
- Instructions in python: Create a compression algorithm that will compress the text "nnneennwnneeeennwwnneeeessseeenneeesswsswwwsssswww" in the parchment piece into a smaller form. The algorithm must include simple instructions of no more than 1 or 2 sentences. It is recommended that you use basic ASCII characters, as the focus here is the algorithm rather than the physical space occupied by the result. Create a copy of this spreadsheet to organize your results and calculate the compression ratios. After working for about 10 minutes, you can access a clue: 2D Map. After another 10 minutes, you can view the 2D Map with Terrain. There are many correct answers to this exercise.arrow_forwardPlease help me with these question. I am having trouble understanding what to do. Please use HTML, CSS, and JavaScript Thank youarrow_forwardPython Soulution to 1arrow_forward
- Text book imageComputer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONText book imageComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceText book imageNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Text book imageConcepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningText book imagePrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationText book imageSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY