import streamlit as st import random # List of jokes jokes = [ "πŸ©ΈπŸ’‰πŸ“ Why did the nurse need a red pen at work? In case she needed to draw blood.", "πŸ΄πŸ‘¨β€πŸ³πŸ‘€ Did you hear about the new restaurant called Karma? There's no menu – you get what you deserve.", "πŸ’€βŒπŸ’ͺ Why don't skeletons fight each other? They don't have the guts.", "πŸ©ΈπŸ’‰πŸ‘¨β€βš•οΈ Why did the doctor always carry a red pen? In case he needed to draw some blood.", "πŸ’ͺπŸ‹οΈβ€β™‚οΈπŸ˜΄ I'm not feeling very work-out-y today. I think I might have a case of gymnesia.", "β˜•οΈβ„οΈπŸ˜· Why did the hipster get sick? He drank his coffee before it was cool.", "πŸ‘¨β€πŸŒΎπŸ†πŸ‘ Did you hear about the scarecrow who won an award? Because he was outstanding in his field of medicine.", "πŸ’°πŸ’΅πŸ¬ Did you hear about the guy who invented Lifesavers? He made a mint.", "πŸ‘»πŸ‘»πŸ”Ό Why don't ghosts use elevators? They lift spirits naturally.", "πŸ₯¬πŸƒβ€β™€οΈπŸ¦– I'm on a health kick – I'm drinking kale smoothies and jogging every day. It's exhausting – I'm starting to feel like a vegetarian T-Rex.", "πŸŒπŸ‘¨β€βš•οΈπŸ˜· Why did the banana go to the doctor? Because it wasn't peeling well.", "🎈🌬️🚫 I tried to start a hot air balloon club for people with asthma. It never really took off.", "πŸ‘¨β€βš•οΈπŸ’»πŸŒ What do you call a doctor who fixes websites? A URL-ologist.", "πŸ¦ πŸ”¬πŸ’‰ Why did the germ cross the microscope? To get to the other slide.", "πŸ‘“πŸŽ©πŸ‡ Did you hear about the optometrist who fell into his lens grinder? He made a spectacle of himself.", "πŸ€•πŸ”§πŸ˜– What's the best way to cure a headache? Put your head in a vise and tighten it until the headache goes away.", "πŸ’ͺπŸ‹οΈβ€β™‚οΈπŸ€ͺ I think I'm getting a cold. I've been coughing so much that my abs have a six-pack.", "πŸ§›β€β™‚οΈπŸ’‰πŸ˜± Why did the nurse refuse to give the vampire a shot? He might have had a bat reaction.", "πŸ₯🦡πŸ₯ Why did the man with a broken leg cross the road? To get to the other side of the hospital.", "πŸšͺπŸŽ‰πŸ₯‡ Did you hear about the guy who invented the knock-knock joke? He won the 'No-bell' prize." ] # Add sliders to adjust the number of jokes to display and the size of the font num_jokes = st.sidebar.slider("Number of jokes to display", 1, len(jokes), 5) font_size = st.sidebar.slider("Font size", 12, 36, 24) # Shuffle the list of