├── .gitattributes ├── README.md ├── input.txt ├── main.py └── output.txt /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moondevonyt/remove-all-vowels-from-text-in-python/1b2b3b2e1f7fb63d690efe467357fe60b6b5d150/README.md -------------------------------------------------------------------------------- /input.txt: -------------------------------------------------------------------------------- 1 | Exercise and Physical Activity: 2 | Regular Exercise: 3 | 4 | Aim for at least 150 minutes of moderate-intensity aerobic activity or 75 minutes of vigorous-intensity activity each week, combined with muscle-strengthening activities on 2 or more days a week. 5 | Incorporate a mix of cardiovascular exercises (running, cycling, swimming), strength training, and flexibility exercises (yoga, stretching). 6 | Active Lifestyle: 7 | 8 | Stay active throughout the day by incorporating physical activities such as walking, stair climbing, and other forms of non-exercise movement. 9 | Monitor Fitness Levels: 10 | 11 | Use fitness trackers to monitor your daily activity levels and ensure you meet your physical activity goals. 12 | Mental and Emotional Health: 13 | Stress Management: 14 | 15 | Practice stress-reducing techniques such as mindfulness meditation, deep breathing exercises, and yoga. 16 | Allocate time for hobbies and activities that bring joy and relaxation. 17 | Sleep: 18 | 19 | Ensure you get 7-9 hours of quality sleep each night. Maintain a regular sleep schedule and create a calming pre-sleep routine. 20 | Social Connections: 21 | 22 | Cultivate strong social connections and engage in meaningful relationships. Social support is vital for mental well-being and overall health. 23 | Routine Medical Check-Ups: 24 | Regular Screening: 25 | 26 | Schedule regular health check-ups with your healthcare provider to monitor key health metrics such as blood pressure, cholesterol levels, blood sugar levels, and body weight. 27 | Consider genetic testing if you have a family history of certain health conditions to understand your personalized risk factors. 28 | Preventive Care: 29 | 30 | Follow vaccination schedules and preventive care guidelines recommended by your healthcare provider. 31 | Monitor and Adjust: 32 | 33 | Continuously monitor your health metrics and adjust your diet, exercise, and lifestyle habits as needed based on findings from regular check-ups. 34 | Advanced Health Strategies: 35 | Nutritional Supplements: 36 | 37 | Consider taking supplements if recommended by a healthcare provider, particularly for nutrients that are challenging to obtain through diet alone (e.g., vitamin D, omega-3 fatty acids). 38 | Personalized Nutrition: 39 | 40 | Explore personalized nutrition plans based on genetic testing, which can provide insights into your unique dietary needs and how to optimize nutrient intake for your body. 41 | Mental Performance: 42 | 43 | Engage in activities that promote cognitive health such as puzzles, learning new skills, reading, and other brain-engaging activities. 44 | Summary: 45 | To be in the top 5% in terms of health, build on your solid foundation by optimizing every aspect of your lifestyle. Prioritize a balanced, nutrient-dense diet, maintain a robust and varied exercise routine, manage stress effectively, ensure adequate sleep, and stay proactive with regular medical check-ups. By adhering to these guidelines, you can significantly reduce your risk... 46 | -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- 1 | def remove_vowels(text): 2 | vowels = "AEIOUaeiou" 3 | result = ''.join([char for char in text if char not in vowels]) 4 | return result 5 | 6 | def process_files(input_file, output_file): 7 | try: 8 | # Read the input text from input.txt 9 | with open(input_file, 'r') as file: 10 | input_text = file.read() 11 | 12 | # Remove vowels from the input text 13 | result_text = remove_vowels(input_text) 14 | 15 | # Write the result to output.txt 16 | with open(output_file, 'w') as file: 17 | file.write(result_text) 18 | 19 | print(f"Processed text has been written to {output_file}") 20 | except FileNotFoundError: 21 | print(f"Error: The file {input_file} was not found.") 22 | except Exception as e: 23 | print(f"An error occurred: {e}") 24 | 25 | # Define the input and output file paths 26 | input_file_path = 'input.txt' 27 | output_file_path = 'output.txt' 28 | 29 | # Call the function to process the files 30 | process_files(input_file_path, output_file_path) -------------------------------------------------------------------------------- /output.txt: -------------------------------------------------------------------------------- 1 | xrcs nd Physcl ctvty: 2 | Rglr xrcs: 3 | 4 | m fr t lst 150 mnts f mdrt-ntnsty rbc ctvty r 75 mnts f vgrs-ntnsty ctvty ch wk, cmbnd wth mscl-strngthnng ctvts n 2 r mr dys wk. 5 | ncrprt mx f crdvsclr xrcss (rnnng, cyclng, swmmng), strngth trnng, nd flxblty xrcss (yg, strtchng). 6 | ctv Lfstyl: 7 | 8 | Sty ctv thrght th dy by ncrprtng physcl ctvts sch s wlkng, str clmbng, nd thr frms f nn-xrcs mvmnt. 9 | Mntr Ftnss Lvls: 10 | 11 | s ftnss trckrs t mntr yr dly ctvty lvls nd nsr y mt yr physcl ctvty gls. 12 | Mntl nd mtnl Hlth: 13 | Strss Mngmnt: 14 | 15 | Prctc strss-rdcng tchnqs sch s mndflnss mdttn, dp brthng xrcss, nd yg. 16 | llct tm fr hbbs nd ctvts tht brng jy nd rlxtn. 17 | Slp: 18 | 19 | nsr y gt 7-9 hrs f qlty slp ch nght. Mntn rglr slp schdl nd crt clmng pr-slp rtn. 20 | Scl Cnnctns: 21 | 22 | Cltvt strng scl cnnctns nd ngg n mnngfl rltnshps. Scl spprt s vtl fr mntl wll-bng nd vrll hlth. 23 | Rtn Mdcl Chck-ps: 24 | Rglr Scrnng: 25 | 26 | Schdl rglr hlth chck-ps wth yr hlthcr prvdr t mntr ky hlth mtrcs sch s bld prssr, chlstrl lvls, bld sgr lvls, nd bdy wght. 27 | Cnsdr gntc tstng f y hv fmly hstry f crtn hlth cndtns t ndrstnd yr prsnlzd rsk fctrs. 28 | Prvntv Cr: 29 | 30 | Fllw vccntn schdls nd prvntv cr gdlns rcmmndd by yr hlthcr prvdr. 31 | Mntr nd djst: 32 | 33 | Cntnsly mntr yr hlth mtrcs nd djst yr dt, xrcs, nd lfstyl hbts s ndd bsd n fndngs frm rglr chck-ps. 34 | dvncd Hlth Strtgs: 35 | Ntrtnl Spplmnts: 36 | 37 | Cnsdr tkng spplmnts f rcmmndd by hlthcr prvdr, prtclrly fr ntrnts tht r chllngng t btn thrgh dt ln (.g., vtmn D, mg-3 ftty cds). 38 | Prsnlzd Ntrtn: 39 | 40 | xplr prsnlzd ntrtn plns bsd n gntc tstng, whch cn prvd nsghts nt yr nq dtry nds nd hw t ptmz ntrnt ntk fr yr bdy. 41 | Mntl Prfrmnc: 42 | 43 | ngg n ctvts tht prmt cgntv hlth sch s pzzls, lrnng nw sklls, rdng, nd thr brn-nggng ctvts. 44 | Smmry: 45 | T b n th tp 5% n trms f hlth, bld n yr sld fndtn by ptmzng vry spct f yr lfstyl. Prrtz blncd, ntrnt-dns dt, mntn rbst nd vrd xrcs rtn, mng strss ffctvly, nsr dqt slp, nd sty prctv wth rglr mdcl chck-ps. By dhrng t ths gdlns, y cn sgnfcntly rdc yr rsk... 46 | --------------------------------------------------------------------------------