#input function
Explore tagged Tumblr posts
Text
Data types and input function
Programs use input to do certain work, and in order to receive it from another user, we can use the input function.
The input() function always turns the user input into a string, no matter which type of data was originally put into it.
Example:
cost_of_living=input() #user may write down an answer print(type(cost_of_living)) #to specify the data type of the input user has given
answer: <class 'str'> = string
But! You can't do math with strings, so sometimes we need to convert existing data type of a value.
cost= input() #default data type is a string cost=int(cost) #converts into integer cost=float(cost) #converts into float cost=str(cost) #back to string
Side notes: 1. You cannot convert any type of value to an integer or the float, only numeric values!
cost= "one hundred" cost=int(cost) #would result into an error
while:
cost= "100" cost=int(cost) #would convert string into an integer, as desired
2. Another important thing to remember, is that when we are creating a value as an integer, we use quotes "".
But in order to convert a variable into a string, we have to use a function str().
apples = 2 print("apples") # prints "apples", not the string with value 2 apples = str(apples) print(type(apples)) #<class 'str'> print(apples) #2
0 notes
Text
ADHD & Autism










The Autistic Teacher
#autism#actually autistic#adhd#adhd post#adhd & autism#both go together#sensory input#socializing#executive functioning#neurodivergence#neurodiversity#actually neurodivergent#feel free to reblog/share#The Autistic Teacher (Facebook)
572 notes
·
View notes
Text
does anyone else feel like they become neurotypical while they're in the shower
#I know it's something to do with like the white noise/sensory input helping ur brain function properly or somethin#but I swear my ADHD just fully goes away for as long as I'm in the shower#and then as soon as I step out it shloops back into my brain#it's very weird#a lot of the time I step into the shower and I feel like my executive dysfunction fully goes away like I could do anything I want#and I'll start makin a to do list in my head like 'okay as soon as I'm done showering I gotta do this and this and this'#and then I step out and I'm like lol :P forgor#lyla's talking again#ADHD#autism
172 notes
·
View notes
Text
Ngl monster hunter wilds is one of the most frustrating UIs and command entry systems I've used. I mean, I GET that it's a long established series so people are familiar with the setup, but it is genuinely a mark of shit setup if there is no real tutorial on how to use the system if you have no prev mh experience :/
Radial menu heal commands are just gaslighting at this point. 3 - 5 attempts to get the input to actually register mid-battle.....caca ass layout 🙃
#Creepy chatter#I KNOW there are setting toggles#Ive spent hours in there already. It just does not register 'release' inputs#And kinda doodoo as well to need hours of tweaking settings#And you can't even map your controller 💀#Brother in christ I have never had a more frustrating $70 game#Would you believe even the high tutorial setting doesn't even cover how to use the item belt or crafting#Unless you stumble into the menu eventually 🤦#My partner is a long time mh player and it is kinda stupid the amount of core functions he has to explain to me#Bc the game just. Never addresses them.#Such as: how to load/use/change ammo on your sling 💀#Im going to keep playing I just hate how mh feels to learn. Pop ups mid battle no pause crazy ass outta their mind UI....
24 notes
·
View notes
Text
We can all admit that binghe would make a terrifying hal right?
#svsss#shen yuan#liu qingge#shen jiu#yue qingyuan#space odyssey au#There is two expeditions going on at the same time. one is sy's group and the other is sj's#sy's is searching for an item/the jupiter expedition while sj's is for monitoring the ais#Binghe goes rogue after realizing it developed attachment with shen yuan and after getting his contradicting orders kills everyone else#but he leaves sy alive (failed liushen) but sy thinks he will be killed next#sj's team is testing the outputs and functions of their own ai YQY after the M0be1 incident which resulted in the killing of a staff member#so sj's team are out monitoring the inputs and outputs of YQY to see if it can be corrected#sj also created YQY and DESPISES the fact it now acts “human” (a development that happened after sj sold the Qi ai )#but they get the distress call from SY and pick him up and realize the true danger of these robots#Binghe performs horizontal gene transfer with YQY and now YQY is sentient#and YQY ALSO hates that he acts more human and now is in a guilt loop#YQY is more aware. sj hates he is more aware. guilty he is aware and then guilty that he feels guilt in the first place
48 notes
·
View notes
Note
Hear me out
Transfem alastor
Thoughts?
I mean honestly live your dreams anons I'm open to any of these hcs but I wanna be transparent that I am a #cis girl, gender stuff isn't really my Area of Expertise since it doesn't fit under my experiences as a cis person
that being said, transfem alastor, kinda real, hated men so much he said actually fuck being one
and I could see the vees' one, not much to say here (vox does canonically get hard but I respect the energy here. although one could question how hell works in reincarnating you when you die, if you're trans and want your gender's biological parts will it give it to you. although arguably vox IS part tech so maybe he... alright I will stop this line of thought)
#ask#osrs.txt#I'm fine with any of these hcs but like just don't come in expecting much input from me#I wanna be careful of misrepresenting trans people with anything I say#and I worry like stuff I say about certain trans hcs could be Inaccurate to trans experiences#DO feel free to correct me on anything I say when it comes to this#hazbin alastor#hazbin hotel alastor#alastor#hazbin vox#hazbin hotel vox#vox#hazbin velvette#hazbin hotel velvette#velvette#hazbin valentino#hazbin hotel valentino#valentino#the vees#okay but do you think vox could've made himself a functioning dick that could get hard out of tech#suggestive#is it suggestive or is it just normal hazbin hotel
75 notes
·
View notes
Text
my ridiculous massive spreadsheet projects for logging every pokemon i own and recording every fusion ive made in cassette beasts are dangerous, because theyre really good at making me FEEL like im being productive- like omg im accomplishing so much, im checking off boxes im filling the spreadsheet!!!! but im not actually accomplishing anything meaningful. theyre a kind of like art in a way, where the art is in the process of completing them for the sake of it? but its not the kind of thing thats worth anything to anyone who isnt me.
honestly i think theyre fine enough hobby activities its just like. obsessively entering useless data into spreadsheets definitely eats up the time i could be spending drawing or doing something creative
#i need to look for data entry jobs. the only downside is that im not particularly good at like… actual spreadsheet coding stuff#no remembering how to create functions Only inputting data into the correct fields#i need a text post tag
12 notes
·
View notes
Text
as a student, you gain hope when you go to office hours and get answers, and you go through the stages of grief when you submit homework and get feedback.
as a teacher, you gain hope when you host office hours and give advice, and you go through the stages of grief when you grade homework and subject yourself to human stupidity.
#if you have two numbers as inputs to a function#and you want to compare their respective outputs#how do you tell someone that rounding two distinct inputs to the same number is incorrect#also had a student email me with tech issues 2 minutes after the deadline#12:01am email#he had his reasons so i felt bad but like dude.#you could've emailed me ANYTIME#you could have TALKED to someone#asked them how to merge a pdf#office hours professors classmates Literally Anyone can show you how to merge a pdf#heck if you emailed me at 11:50pm saying you don't know how to merge a pdf#i will fucking merge the pdf for you
14 notes
·
View notes
Text
they should make it less scary
#i finally have an assessment on friday for 'please pay for my wheelchair' paperwork#(finally decided 2 years of struggling was enough and i'm allowed)#but it's at my house and i'm scared she'll say no bc my house is made of stairs inside and out#even though i'm hoping to move by the end of summer!!#and then the government also has to say yes because why wouldn't we turbo gatekeep everything#and i don't even know if i'll get the chair i want/need bc gov funding is sick and twisted! and some parts aren't available in canada!#ghh it's stressful and made worse by people trying to one-size-fits-all me#like i'm scared i won't get to have input on the seat height or footrest angle or things like that yk? functional things?#either bc of funding or ordering or bc everyone else thinks they know what's best for me#aaaughghghh. anyway.#p
16 notes
·
View notes
Text
It's really freeing when you learn that rationality isn't going to be feasible in the long run, not because rationality is this thing that only Truly Enlightened people get the privilege to experience, but because humans are just irrational.
You can know when you're being irrational, and sometimes, it is in big ways. But pretending like that irrationality doesn't exist or can only exist if you're "stupid" only sets you back from growing. Irrationality is part of the human condition - it is impossible to actually be this enlightened person people like to project themselves onto.
#positivity#gentle reminders#inspired because i started feeling disgusted about my HEART BEATING#but irrationality sets us apart from many other species of animals. the contradiction of the human condition is woven into us#what you do about that is recognize it and then seek to expand your world#like... it is irrational as hell to be disgusted about your own damn body and the way it functions without your dorect input but here we ar#i used to feel this pressure to never be contradictory in Any Way and to Always Be Intelligent...#...but that intelligence didn't come from a genuine understanding of the world. it came from what was just a façade...#...what did i have if not Intelligence (but not true intelligence; just the bullshit people THINK is intelligence)#in my quest to be a Better Person i ended up only dehumanizing myself and partitioning myself off into tiny little boxes#it's weird to experience that - to experience your own self being dehumanized BY YOU because you buy into what is essentially propaganda#if this doesn't make sense consider that it's Way Too Late right now and i should have been asleep over seven hours ago
96 notes
·
View notes
Text
Do any other systems write stories about daily interactions between alters?
Our inner world can be very vivid or very loose. It just depends. And so our memories of what we do there can also be really wishy-washy. I know I have two moms, but lately I’ve been feeling a bigger and bigger disconnect bc they only exist in the inner world and I don’t remember our interactions as much…
Is this a normal thing? Or are we faking having DID??? Because I’m worried this means we aren’t real because other systems talk a lot about their lives in their inner worlds and their interpersonal interactions and sometimes we have that but most of the time we don’t…
#mental health advice#did system#syskidstuff#syskid#child alter#actually dissociative#dissociative identity disorder#endos dni#not to be rude but endo systems and trauma systems function very differently#from what I understand#so I want other traumagenic systems input#traumagenic system#traumagenic#so many tags bc I really need someone to tell me this is normal and okay#bc at the end of the day#did is about amnesia#and dissociation#so it makes sense that we don’t remember things#right?
12 notes
·
View notes
Text
ADHD vs, Autism










The Autistic Teacher
#autism#actually autistic#adhd#adhd post#autism vs adhd#social difficulties#sensory input#executive function#it can be a challenge#neurodivergence#neurodiversity#actually neurodivergent#feel free to share/reblog#The Autistic Teacher (Facebook)
394 notes
·
View notes
Text
GPTim having both visual and hearing disabilities is so important to me. That man’s eyes were *burned out* when he *exploded the moon* his hearing is gonna be affected also; and having functional accessibility aids (his mechanical eyes, here) does not equal not disabled, it just means that the disability manifests differently.
#its definitely not just important to me because of projecting. not at all#the mechanisms#gunpowder tim#migraines and photophobia seems to be p common hcs for him. but under the belief that his eyes function *better* than organic eyes.-#he likely struggles to process visual information. his orhanic brain wasnt made for that input. especially with the belief that his eyes-#were originally made for brian who has a mechanical brain#tangentially. do you think his an brians eyes were made without a blind spot?#often its thought that tims eyes are newer and more advanced than brians. but what if theyre an old pair. old prototype or something#or what if they are newer but he would function *better* if they just. like. switched. for information overload reasons#i have so many thoughts about their eyes now.#also. like. we 100% have seen that mechanical eyes which have been abandoned by their creator does not turn out well for the user#*glares at real world events*
120 notes
·
View notes
Note
How does your thing work??? I thought at first you were reading the post in as a string and doing like a key-dictionary thing to match a pattern with a Pokémon name but it didn’t do it with the Ask containing the pokérap. I am v curious and would love to hear about it if you have time
Pokemon detected :
How does your thing work??? I thought at first you were reading the post in as a string and doing like a key-dictionary thing to match a pattern with a Pokémon name but it didn’t do it with the Ask containing the pokérap. I am v curious and would love to hear about it if you have time
Ralts !
#pokemon#pokemon detector#ask the detector#okay so basically#this code is bugggy as hell for a lot of pokemon with double letters lol#but#basically i have two functions#the first parses the text depending on a pokemons name#i have a name list#and it grabs the first name and goes letter by letter to see if it's in the right order in the text i input#then the code runs for every pokemon name in the list that's the second function#it's far from optimized but so long as no one sends me the entire bee movie script it takes maybe .5 secs to run#and it returns a random pokemon from the list of the pokemon names in the text and then i have a thing that tells me if a specific pokemon#is in the list#bc sometimes i wanna be funny but a 10 lines text will give me like 900 pokemon#you can dm me for the code if you want lol it's not something i hold close or wtv it took me maybe a half hour
13 notes
·
View notes
Text
Caleb's arm not being able to feel anything is really psyching me out tho
#everytime I've written a metal arm like that there's been like.... some sensory input?#because how do you operate an arm that is also a weapon just by sight; that's a recipe for disaster#so in my head there's always at least pressure sensitivity plus hot/cold and maybe pain to the extent that it tells the user when the#prosthetic is like... out of commission#so I'm like curious how Caleb's arm functions.......
7 notes
·
View notes
Text
several of my friends who have national parks or other government jobs have gotten fired because of this dumbfuck administration its really fucking infuriating
#we all just finished grad school so they just got their dream jobs and had been there a shade under the one year probation#so the government just gave them the axe with no input from their bosses#and also refused to give tax forms that would help them get unemployment#thinking about how the national parks are even going to function...?#will they be overrun with garbage?#will the animals be ok? will visitors be safe?#its really fucking scary man#kiwi.txt
6 notes
·
View notes