#Python while loop
Explore tagged Tumblr posts
Text
Python For loop while loop
Introduction Loops are essential constructs in Python (and many other programming languages) for iterating over collections of data or executing a block of code repeatedly. There are mainly two types of loops in Python: for loops and while loops. Python While Loops A while loop is used to execute a block of code repeatedly as long as a condition is true. The basic syntax is: while…
View On WordPress
0 notes
Text
Day-5: Mastering Python Loops
Python Boot Camp-2023: Day-5
Python Loop: A Powerful Tool for Iterative Tasks Python, one of the most popular programming languages, offers a wide range of features and functionalities. Among these, loops stand out as a powerful tool for performing repetitive tasks. In this article, we’ll explore Python loops, their types, usage, and best practices to optimize your code. 1. Introduction to Python Loops Loops are essential…

View On WordPress
#Iterative tasks in Python#List comprehensions in PythonPython loop best practices#Python coding efficiency#Python database interactions#Python for loop#Python loop examples#Python loop optimization#Python loop performance#Python loop syntax#Python loop tutorial#Python loops#Python nested loops#Python programming tips#Python while loop
0 notes
Text
reading a programming book that is using a program that simulates rock paper scissors as the tutorial for loops and it's just. ah. this is me associating ISAT with unrelated things now
#I JUST NEED TO FIND WHERE THEY COVER DO-WHILE LOOPS#--and then I thought to google#guess what: I wasn't finding it because do-while loops aren't a thing in Python#SHAME#but there's other ways to do it
6 notes
·
View notes
Quote
The print() function makes sure that our program prints (or sings?) the lyrics out to us.
#python
0 notes
Text
attempting to learn code Again
#at some point this stuff is gonna stick lmao#this stuff is so fun to try to make sense of like#the website i'm using just kinda tells you ''your task is to do This your result should be That. off you go!“ so it's like#whether you should use if/else or while or whatever else is up for you to determine#rather than just This exercise is about While loops so you must use While loops wow congrats you used While loops!!!#yeah because you told me to lmao#if i was coding my own thing i wouldn't have known which kind of code to use#i can do this i wanna at least know python since it works really well as a 'base' for learning other languages
0 notes
Text
functions time...
#trying to relearn python but this time im sticking with it istg#the code from last time still looks good i just forgor to note down what i was planning for the third door#but yeah. functions time!#[i have so many print and time.sleep but ig thats what i get for writing the text as i program]#tldr i decided to do fancy narrative thing so i cant just slap a while loop for the looping....#or can i 👀#NO I NEED TO LEARN FUNCTIONS ITS A BASIC BUILDING BLOCK!!!#anyway w3schools my beloved<333
0 notes
Quote
The print() function makes sure that our program prints (or sings?) the lyrics out to us.
#python
0 notes
Quote
For example, while we’re counting down from 99 bottles of beer in the classic sea shanty with the following lyrics:
#python
0 notes
Quote
The print() function makes sure that our program prints (or sings?) the lyrics out to us.
#python
0 notes
Note
Soft!Reader tying a bow to Rafe’s biceps 🤭🎀 (he acts all tough but he secretly loves it hehe)
Bow
Pairing: Rafe Cameron x Reader
Warnings: N/A
Pronouns: She/Her
Word Count: 0.4K
Summary: Y/N has a new hobby that she loves to use to decorate everything.
Masterlist
Tying ribbon to everything has become Y/N’s new obsession. She spends hours going to different craft stores with Rafe in tow to look at every single option, leaving them with multiple rolls that have caught her eye. Rafe would go to sleep and wake up to every possible thing decorated with a bow, all because his girlfriend found a tutorial on how to make the perfect bow. Her purse. Her hairbrush. The fridge handle. The TV remote. His car keys. His backpack. They are all adorned in various styles of ribbons. He even finds one on the flip lid of his passenger seat’s mirror. Eventually, she runs out of places to add her ribbons and Rafe can tell it dampens her mood.
They are currently at Topper’s house. The boys are working out, while Y/N occupies her time by bow-ifying the workout equipment in Topper’s home gym. “Hey, Y/N/N. Is it really necessary to put it on everything?” Topper inquires, regretting it as soon as he sees her smile fall and Rafe’s glare. Her gaze falls with a frown, “No. It’s not. I’m sorry. I can take them down.” She picks up her scissors and uses them to remove her ribbons, making sure to preserve the bows. She is putting everything in her purse when the boys join her on the couches. Rafe throws a sweaty arm around her shoulders to bring her to his side. She shrieks and pulls away from her boyfriend’s hold. She turns towards him, catching a look at the way his thick biceps glisten because of the sweat and light. Her intrusive thoughts win and she wraps a pink sparkly ribbon around his arms. He freezes under the pressure with his eyebrows knitted together. “What are you doing?” he grumbles. She tugs the loops of the bow before moving on to his other arm, “All prizes have a ribbon to show that they are the winner. I’m giving your most prized possession what they need.” His hardened gaze doesn’t let up as he looks at the glitter now falling on his skin. “This is ridiculous, Baby,” he complains, taking his arm out of her hands.
Again, her eyes fall to the ground and he can feel her insecurity creeping in. “What I mean is the thought of my arms being my most prized possessions is ridiculous because that title belongs to you, Baby,” he clarifies, taking the ribbon out of her hands to give her a headband and kissing her forehead once he finishes. “Now, we are matching.” She gazes up at him with a smile. He isn’t going to lie to himself. He loves the ribbon wrapped around his bicep. It is giving him an ego boost that his girl thought they were nice enough to be decorated. “I love it. Thank you, Rafey,” she whispers. An objection can be heard coming from Topper, “Excuse me. I think I deserve a ribbon for my obviously superior pythons."
Taglist: @winterrrnight @loves0phelia @thelomlisrafecameron @wickedlovely121 @thepatriarchykeychain @drewsmusee @starkowswife @maybankslover @forstarkey @loving-and-dreaming
#rafe cameron#rafe cameron x reader#rafe cameron imagine#outer banks#outer banks fanfiction#rafe cameron x y/n#outer banks imagine#rafe fic#rafe#rafe obx#rafe outer banks#rafe imagine#rafe x reader#outerbanks rafe#rafe cameron outer banks#rafe cameron x you#rafe cameron fanfiction#outer banks x reader#outerbanks#outer banks fic#outer banks rafe#obx fanfiction#obx#obx fic#obx imagine#obx fanfic
1K notes
·
View notes
Text
Day-3: Mastering Control Flow and Logical Operators in Python
Python Boot Camp - 2023
Python is a versatile and widely used programming language known for its simplicity and readability. One of the fundamental aspects of programming is controlling the flow of execution based on certain conditions. Python provides various control flow statements and logical operators that allow programmers to make decisions and perform actions accordingly. 1. Introduction to Control Flow in…

View On WordPress
#Nested control flow Python#Python and operato#Python code execution#Python coding tips#Python conditional statements#Python control flow#Python decision-making#Python elif statement#Python else statement#Python for loop#Python if statement#Python logical operators#Python looping and control flow#Python not operator#Python or operator#Python programming best practices#Python programming guide#Python programming techniques#Python while loop#Ternary operator Python
0 notes
Text
I'm trying to learn how to code in Python for my job and I feel like I hit a programing rite of passage by making a nested for and while loop with no exit condition 👌
205 notes
·
View notes
Quote
The print() function makes sure that our program prints (or sings?) the lyrics out to us.
#python
0 notes
Text
The after effects I experienced after watching Nosferatu (2024) have been…rather intriguing, to say the least.
Just before I get into whatever I’m talking about, I do massively apologise for my pretentiousness in this post.
————————————————
.
.
.
.
.
The kind of effect that the 2024 remake of Nosferatu has held on me is something that has continuously looped across my mind for such a long while now, even a few days after having seen it in the cinemas with my boyfriend.
Like there’s this darkly seductive pull that’s constantly orbiting around me the more I ruminate on my experiences with the film. The way certain scenes keep on looping in my daydreams further intensify this sensation that feels like a dangerous python slowly wrapping itself around me, but it’s hold carefully tethers the line between a lethal chokehold and a sensual embrace. There’s a danger to it, and yet it all feels so nice and soothing. It’s enticing.
But that’s the thing - the situations that occur in this film (especially pertaining to Ellen and Orlok’s connection) also have an explicit wrongness to them. The things that occur to Ellen, for example, are distressing and disturbing. And as a result, the pull I experience feels outright repulsive at the same time. It’s conflicting. It creates a divide in my mind. It makes me feel ashamed and horrible. It makes me feel disgusted. It’s venomous.
Which is why I find this film absolutely fascinating. There’s so much to appreciate about all that goes into it, from the filmmaking, to the many interpretations people get out of it, amongst so much more. And not forgetting to mention the utter divide and effect it has within my mind.
I love this movie and I hope I get to see it again sometime soon.
#nosferatu#nosferatu 2024#obsessed with nosferatu#robert eggers#ellen hutter#count orlok#thomas hutter
17 notes
·
View notes
Quote
For example, while we’re counting down from 99 bottles of beer in the classic sea shanty with the following lyrics:
#python
0 notes
Note
Dragon never understood why people were so afraid of snakes because, in all his experience zoan or otherwise, snakes are some of the most relaxed and pacifistic animals. Even the reputed man-eating pythons of the Goa Kingdom wouldn't even raise their heads out of the sun so long as they or their eggs weren't messed with (which albeit the Monkey family is very guilty of by necessity). There have been moments where Dragon has been fighting a wild macaque in the trees and the giant rock python coiled around one of the lower branches didn't stir once. At least until the end when they looped around the fleeing macaque with lightning swiftness for some lunch.
Also they do this a lot more than people would think.
Like with all the animals his devil fruit makes him an amalgamation of, he can understand them, and they him.
Their language is fascinating because it isn’t based in sound, but in scent. They, like the majority of the animal kingdom, are incapable of lying. They are careful, slow-going creatures. Excellent basking partners. Invaluable contributors to modern medicine. Excellent subjects of analogy and philosophical debate.
Of course, growing up being able to understands snakes made similes and idioms like “low as a snake” or “snake in the grass” difficult to grasp. They still remain a pet peeve of his.
Dragon adores snakes, but if there’s one he is required to put above the rest, it’s the Great Serpent Nola. The amount of history he’s learned from her while doing their morning basking is incredible. It’s been crucial information in the post-Nerona dictatorship intellectual renaissance.
7 notes
·
View notes